This is an app skeleton for the Slim PHP Micro-Framework to get started quickly
- Eloquent ORM
- Flash messages (Slim Flash)
- CSRF protection (Slim Csrf) with fields rendering with a twig function
- Authentication (Sentinel)
- Validation (Respect + Slim Validation)
- Twig templating engine Slim Twig View with cache and debug
- CSS Framework Bootstrap UI
- JS Framework Webix UI
- Admin template Core UI
- Helpers for assets management, redirections, ...
- Logs (Monolog)
- Dotenv configuration
- Console commands for updating the database schema or creating users
- Functionnal tests base (PHPUnit)
For more information, check out the project's website or the wiki.
$ git clone https://github.com/baihaqyaviq/slim-webix-base.git
Copy .env.dist
to a .env
file and change the values to your needs. This file is ignored by Git so all developers working on the project can have their own configuration.
The skeleton uses a cache system for Twig templates and the Monolog library for logging, so you have to make sure that PHP has write permissions on the var/cache/
and var/log/
directories.
First, create a database with the name you set in the .env
file. Then you can create the tables by running this command:
$ php bin/console db