This is a Slim 3 skeleton project that includes Routing, Middleware, Twig templates, mustache.js, Translations, Assets, Sessions, Database Queries, Migrations, Console Commands, Authentication, Authorization, CSRF protection, Logging and Unit testing.
- PHP 7.1+, Apache, MySQL
- Apache Ant (recommended)
Step 1: Create a new project:
composer create-project --prefer-dist odan/prisma my-app
Step 2: Set permissions
(Linux only)
cd my-app
sudo chown -R www-data tmp/
sudo chown -R www-data public/cache/
Optional
NOTE: The app will have ability to create subfolders
in tmp/
and public/cache/
which means it will need 760.
sudo chmod -R 760 tmp/
sudo chmod -R 760 public/cache/
NOTE: Debian/Ubuntu use www-data
, while CentOS uses apache
and OSX _www
.
Step 3: Setup
Run the installer script and follow the instructions:
sudo php cli.php install
Step 4: Run it
- Open
http:https://localhost/my-app
- Login with username / password:
admin / admin
oruser / user
This package is documented here.
The MIT License (MIT). Please see License File for more information.