Download the PHP package awurth/slim-base without Composer
On this page you can find all versions of the php package awurth/slim-base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awurth/slim-base
More information about awurth/slim-base
Files in awurth/slim-base
Package slim-base
Short Description Slim PHP Micro-Framework skeleton
License MIT
Homepage https://github.com/awurth/Slim
Informations about the package slim-base
Slim 3 application skeleton
This is an app skeleton for the Slim PHP Micro-Framework to get started quickly
Features
- 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 4
- Webpack Encore for SASS and JS files compilation and minification
- 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 wiki.
Installation
Create the project using Composer
Setup environment variables
Copy .env
to a .env.local
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.
Download client-side libraries
or if you prefer to use npm
Webpack
This skeleton uses Webpack to manage assets. The CSS and Javascript files are located in assets/
, so you have to use Webpack after creating your project to generate the minified files in public/
, which will be ignored by Git.
Generate assets
If you just want to generate the default CSS and JS that comes with this skeleton, run the following command
or
If you want to run a watcher and begin coding
Setup cache files permissions
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.
Update your database schema
First, create a database with the name you set in the .env*
file. Then you can create the tables by running this command:
All versions of slim-base with dependencies
awurth/slim-helpers Version ^1.0
awurth/slim-validation Version ^3.0
cartalyst/sentinel Version ^2.0
illuminate/database Version ^5.4
illuminate/events Version ^5.4
monolog/monolog Version ^1.23
respect/validation Version ^1.1
slim/csrf Version ^0.8.0
slim/flash Version ^0.2.0
slim/slim Version ^3.0
slim/twig-view Version ^2.0
symfony/console Version ^3.0|^4.0
symfony/dotenv Version ^3.0|^4.0
symfony/http-foundation Version ^3.0|^4.0