vaibhavpandeyvpz/silex-skeleton

Scaffolding for silex/silex to kick-start creation of responsive administration panels.

dev-master 2016-12-01 06:21 UTC

This package is auto-updated.

Last update: 2024-12-07 00:28:50 UTC


README

Scaffolding for silex/silex to kick-start creation of responsive administration panels.

SensioLabsInsight Scrutinizer Code Quality Total Downloads Software License

Features

  • User authentication and management
  • Login via Facebook & Google (or any OAuth2 service)
  • Role-based access control
  • Email address confirmations
  • Password reset via email
  • Assets are built & minified using Gulp
  • Full MVC w/ Doctrine ORM, Twig templates
  • Secure by default w/ CSRF protection
  • Various caching systems for performance
  • Source-code as per PSR coding standards

Install

# Install Node.js (if not already)
sudo apt-get install nodejs

# Install Bower & Gulp globally
sudo npm i -g bower gulp

# Create a new project in a folder named 'yourapp'
composer create-project vaibhavpandeyvpz/silex-skeleton:@dev yourapp

# Setup configuration in '.env' file
cd yourapp && nano .env

# Prepare database & create admin user
composer run-script migrate

Development

For development, you can start a development server using PHP's built-in server as follows:

composer run-script server

Default admin username is admin@silex-skeleton.app and password is 12345678.

Deployment

Minify static assets before deployment to server:

gulp build --production

On server, it is recommended to install a SSL certificate and uncomment the following lines in public_html/.htaccess to enforce https:// protocol and enable auto-redirect if accessed via http://:

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

License

See LICENSE.md file.