jambocartoon MVC Framework

Simba is a lightweight, production-tested PHP MVC starter. It gives you an opinionated structure for controllers, views, models, and configuration so you can focus on shipping features quickly without sacrificing clarity.

Run the Onboarding Wizard Read the Docs

Core Ideas

  • Front-controller router keeps URLs predictable — `/controller/action/params`.
  • Controllers extend a simple base class with helpers for views, CSRF, and sessions.
  • Views are plain PHP templates; no magic templating layer to fight.
  • Configuration lives in `.env` and is surfaced through `Env::get()`.

Getting Started

  • Clone the repo into your document root.
  • Visit `/onboard` to generate your `.env` with pre-filled defaults.
  • Point your virtual host to the project root and reload.

What’s Included

  • Secure sessions and CSRF helpers out of the box.
  • PDO database wrapper with optional Redis support.
  • Idempotent SQL migrations runnable via CLI or browser.
  • CLI tooling for version checks and packaging.

Next Steps

  • Remove the onboarding controller once you’re configured.
  • Add your own controllers under `app/controllers`.
  • Create views under `app/views` to match your actions.
  • Check `how_to_use_me.md` for a deeper walkthrough.