Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damianopetrungaro/slim-boilerplate
A PHP boilerplate,for a fast API prototyping based on Slim Framework, for start projects with Eloquent ORM, Validation, Auth (JWT), Repositories and Transformers ready
https://github.com/damianopetrungaro/slim-boilerplate
eloquent jwt php php-boilerplate slim
Last synced: about 1 month ago
JSON representation
A PHP boilerplate,for a fast API prototyping based on Slim Framework, for start projects with Eloquent ORM, Validation, Auth (JWT), Repositories and Transformers ready
- Host: GitHub
- URL: https://github.com/damianopetrungaro/slim-boilerplate
- Owner: damianopetrungaro
- License: mit
- Created: 2016-04-27T23:06:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T23:20:01.000Z (about 7 years ago)
- Last Synced: 2024-05-20T10:33:13.787Z (7 months ago)
- Topics: eloquent, jwt, php, php-boilerplate, slim
- Language: PHP
- Homepage:
- Size: 66.4 KB
- Stars: 59
- Watchers: 9
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slim Boilerplate
A PHP boilerplate based on [Slim Framework](http://www.slimframework.com/), for start projects with [Eloquent ORM](https://laravel.com/docs/5.2/eloquent), Validation, Auth (JWT), Repositories and Transformers ready.This boilerplate is written for RAD (Rapid Application Development).
Anyway it introduces some layer that will help you if the application will grow.
In this case i suggest you to drop Eloquent (or at least use only the query builder and use interfaces instead of Domain Model that extends Eloquent Model).# Installation and Setup
You need [composer](http://getcomposer.org) and [git](https://git-scm.com/) for download and install the repository.```shell
$ git clone https://github.com/damianopetrungaro/slim-boilerplate.git
$ php composer.phar install
```
Edit the `.env.example` to `.env` and override it with your credentials.
```shell
$ php vendor/bin/phinx migrate
```
#### Container
All the object into the container are setted into the `bootstrap/container.php` file#### Info
The routes are into the `app/Routes`, you can add all the .php file you want, each file will be read by slim for catch all the routes.The exception handler is overriden into the `bootstrap/container.php` file.
For more details, info or bugs, just open a new issue to to [repository issue tracker](https://github.com/damianopetrungaro/slim-boilerplate/issues).# Issue tracking
Please report any issues to [repository issue tracker](https://github.com/damianopetrungaro/slim-boilerplate/issues).