Note: This is a work-in-progress and the APIs will very likely change without warning
A modular, micro framework build on top of the PHP-DI dependency injection container and the Symfony Router.
- Lightweight
- Modular
- Code and convention over excessive configuration
- Compatible with PSR-7 middleware
- Out-of-box support for console commands
- Controllers as first-class citizens
- Supports route annotations
- Built-in caching
- Doctrine ORM integration (can be replaced with ORM of your choice)
- Hateoas serializer integration
Install with composer
$ composer create-project simplex/quickstart -s dev
Once installed, create a .env
file in the root directory (see the .env.dist
template).
The quickstart demo requires a Mysql database. This can be created by running the following command
$ composer init-db
Now start a webserver
$ php -S 0.0.0.0:8080 -t public public/app.php
And point your browser to http://localhost:8080/
See the quickstart for a demo module as well as Factories for Doctrine ORM and Hateoas serializer.
- Provide support for defining routes in code