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.php
and.htaccess
to your server's root. Adjust reference toapp.php
from yourindex.php
. - Edit create
.env
file 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