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!
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).
- Clone the repository
- Install dependencies
composer install
- Set up your web server to point to the
public/
directory. - 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)
- Edit routes in
routes/web.php
. - Create controllers in
app/Controllers/
. - Create views in
app/Views/
(Twig by default). - Create models in
app/Models/
for database access.
- Full documentation, features, and advanced usage: See DOCS.md or Documentation
Star this repo to show your support and follow future updates!
SproutPHP will continue to grow with new features, improvements, and community input. Stay tuned for updates, and help shape the future of this framework!
MIT