Skip to content

A minimalistic php-framework designed for go-to developer without the need for javascript or heavy modules. the seed-to-plant minimal PHP framework

Notifications You must be signed in to change notification settings

SproutPHP/framework

Repository files navigation

SproutPHP — Minimalist, Batteries-Included PHP Framework

🌱 Why "Sprout"?

SproutPHP is a growing and budding framework—a tiny sprout with the ambition to become a solid tree. It starts small, fast, and minimal, but is designed to evolve and grow with the needs of its community. The name "Sprout" reflects this progressive, ever-improving philosophy. If you want to be part of something that starts simple and grows strong, you’re in the right place!

Philosophy

SproutPHP is for developers who know PHP, HTML, and CSS, and want to build fast, modern web applications without the bloat of heavy JavaScript frameworks or large dependency trees. It is minimal, but batteries-included: everything you need for a beautiful, interactive web app is ready out of the box.

  • No heavy JavaScript: Use HTMX for interactivity, not SPA frameworks.
  • Minimal dependencies: Only essential Composer packages, no node_modules or asset pipeline.
  • MVC structure: Clear separation of Controllers, Models, and Views.
  • Twig templating: Clean, secure, and fast rendering (optional to swap for native PHP if desired).

Getting Started

  1. Clone the repository
  2. Install dependencies
    composer install
  3. Set up your web server to point to the public/ directory.
  4. Use the CLI to scaffold files
    php sprout make:controller HomeController
    php sprout make:model Post
    php sprout make:view home
    php sprout make:route posts
    # ...and more (run `php sprout` for all commands)
  5. Edit routes in routes/web.php.
  6. Create controllers in app/Controllers/.
  7. Create views in app/Views/ (Twig by default).
  8. Create models in app/Models/ for database access.

Learn More

Star this repo to show your support and follow future updates!

Sponsor development: Sponsor or Buy Me a Tea

SproutPHP will continue to grow with new features, improvements, and community input. Stay tuned for updates, and help shape the future of this framework!

License

MIT

About

A minimalistic php-framework designed for go-to developer without the need for javascript or heavy modules. the seed-to-plant minimal PHP framework

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published