PHPackages                             chrisoishi/slim-easy-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. chrisoishi/slim-easy-template

ActiveTemplate[Templating &amp; Views](/categories/templating)

chrisoishi/slim-easy-template
=============================

Easy temaplate to start dev with slim

v0.1.1(5y ago)19MITPHP

Since Dec 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chrisoishi/slim-easy-template)[ Packagist](https://packagist.org/packages/chrisoishi/slim-easy-template)[ RSS](/packages/chrisoishi-slim-easy-template/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (13)Versions (3)Used By (0)

SLIM EASY TEMPLATE
==================

[](#slim-easy-template)

Easy template for SLIM V4 with pre configurations to start dev your API quickly.

The objective this template is use SLIM FRAMEWORK V4 with struct folders and basic helpers integrations of models, controller, database and auth (in future, maybe more).

This template is also way to implements API efficent, organized and scalable. You don't need many time to understand this template, if you already used SLIM.

You can use the Skeleton template also for develop with SLIM, this template is official: .

i used some ideias of skeleton template and laravel framework to make this.

Installation to test
--------------------

[](#installation-to-test)

- Run:

> composer create-project chrisoishi/slim-easy-template slim\_project\_name

- Edit .env file with your database informations
- Run migrations of auth system:

> vendor\\bin\\phinx migrate

- Run local server:

> composer serve

Struct folders
--------------

[](#struct-folders)

```
- app
    - controllers
        - all controllers here
    - helpers
        - all functions helpers here
    - middlewares
        - all middlewares here
	- models
	    -  all models database tables here
	- modules
	    - similiar packages of packgist, but simple and for use especifcs a your projects
- configs
- db
    - all migrations database here
- public

```

Database
--------

[](#database)

This template based in MySQL database and use Medoo to manage data.

More informations about Medoo -&gt;

**To configure you database, edit de .env file.**

Migrations
----------

[](#migrations)

For migrations, this template use phinx extension ( for docs )

The default folder migrations is in db\\migrations

Models
------

[](#models)

This template, use classes of ApiSupport, avaiable in modules folder. This classes has develop by me =D (more informations about this classes will be at the end)

Basically you need create a file in models folder with the simple code:

```
