/Symfony2-Sonata-Admin-Boilerplate

A Boilerplate with Symfony2 configured with Sonata Admin Bundle

Primary LanguagePHPMIT LicenseMIT

Symfony + Sonata Admin Bundle Boilerplate

The code bundles Symfony 2.0.16 with Sonata Admin Bundle as a boilerplate/Barebone. It is targetted for developers who wish to have an admin panel with Symfony up and running in no time.

Bundles configured/added on the deps are follows:

  • TwigGenerator
  • PagerFanta
  • WhiteOctoberPagerfantaBundle
  • doctrine-fixtures
  • DoctrineFixturesBundle
  • DoctrineBundle
  • SonataAdminBundle
  • SonataBlockBundle
  • SonataCacheBundle
  • SonatajQueryBundle
  • SonataUserBundle
  • SonataEasyExtendsBundle
  • SonataDoctrineORMAdminBundle
  • KnpMenuBundle
  • KnpMenu
  • Exporter
  • SonataDoctrineExtensions
  • FOSUserBundle
  • EntityAudit

How to install

Download the files and follow the steps.

  1. At first update the vendors
php bin/vendors install
  1. Configure your database by updating information in app/config/parameters.ini
database_driver   = pdo_mysql
database_host     = localhost
database_port     = 
database_name     = symfony_boilerplate
database_user     = root
database_password = 
  1. Run the following command to create the database
php app/console doctrine:database:create
  1. Run the following command to add/update tables
php app/console doctrine:schema:update --force
  1. Install the Assets by using the following command:
php app/console assets:install web
  1. Create a Super Admin User
php app/console fos:user:create admintest admin@test.com pass --super-admin
  1. Thats it!. You are ready to go. Visit url below for your Admin Dashboard :).
http://localhost/symfony_boilerplate/web/app_dev.php/admin/dashboard

License & Credits

Same License as Symfony and Sonata Admin.