/sf28_lte2

Symfony 2.8 with Admin LTE 2 - A boilerplate to start new project instantly with pre-built common features!

Primary LanguagePHP

Symfony 2.8 with Admin LTE 2

A ready made setup to use as boilerplate for Symfony 2.8 with Admin LTE 2 admin template

The following things are provided pre-configured -

  • Layout using beautiful, responsive Admin LTE 2 Template
  • Sample working pages (Login, Dashboard and User CRUD) for using Admin LTE 2 design
  • Working User Entity and Login, Logout, Password reset, Profile picture etc. using FOSUserBundle
  • Configured SyliusResourceBundle
  • Flexible, configurable menu using KNPMenuBundle
  • Installation of assets with Bower

Screenshots

Dashboard Page

User List

Profile Page

Installation

  1. Clone the repository to your local

    git clone git@github.com:ajaxray/sf28_lte2.git my-project
    
  2. Create a VirtualHost:

    <VirtualHost *:80>
    
        ServerName my-project.dev
    
        <Directory "/path/to/my-project/web">
           Options Indexes FollowSymLinks MultiViews
           AllowOverride All
           Order allow,deny
           Allow from all
        </Directory>
    
        DocumentRoot "/path/to/my-project/web"
    
    </VirtualHost>
    

    Don't forget to add domain in hosts file and reload apache.

  3. Create .htaccess file and modify to match your environment:

    cp web/.htaccess.dist web/.htaccess
    
  4. Download the vendor libraries:

    composer install --prefer-dist
    bower install
    

    If you require any other common js tool (e,g, moment.js, bootstrap-datepicker etc.) don't forget to check web/assets/AdminLTE/plugins/ directory first. Good number of common tools/plugins are already available there.

  5. Prepare the database:

    php app/console doctrine:database:create
    php app/console doctrine:schema:create
    
  6. Install and dump assets:

    php app/console assets:install --symlink
    php app/console assetic:dump
    
  7. Create a super admin to access dashboard:

    php app/console fos:user:create admin --super-admin
    
  8. Run the app by visiting: http://my-project.dev

Enjoy!