This is a boilerplate template for developing applications using Slim Framework. Slim Framework comes handing with multiple extensions such as request/response handling, routing, middleware support, and dependency injection capabilities.
I have integrated a set of components which would be applicable for many sort of projects. The integrations include:
- Twig Views
- Authentication with Session
- Eloquent ORM
- Database Migrations with Phinx
- Input validation with Respect Validation
- Clone the repository. Rename the repository as you wish.
- Move
index.phpand.htaccessto your server's root. Adjust reference toapp.phpfrom yourindex.php. - Edit create
.envfile and configure environment variables. - Enjoy the development of your Web API/Application.
Use ./vendor/bin/phinx create YourMigrationClassName command to create a migration.
Use ./vendor/bin/phinx migrate command to commit a migration to your database.
Use ./vendor/bin/phinx rollback command to rollback a commit.
Create a class in app/Models/ directory that extends Illuminate\Database\Eloquent\Model class.
Javid Museyibli - Software Developer, OnePlate
MIT licensed, (c) @jmuseyli