A Symfony project created on February 17, 2016, 12:17 pm.
This is a starter Admin template built on latest Symfony3 build (3.0.4 at the time of writing). This is not a BUNDLE
This project comes with pre installed Symfony recommended and useful bundles to for rapid web development. This project use AdminThemeBundle theme.
Following bundles are included with the template. Not all of them are used in example pages. TODO
- FOSUserBundle - User Management
- FOSRestBundle - For bulid meaningful REST API's
- DoctrineMigrationsBundle - Doctrine database migrations
- LiipImagineBundle - Easy image manupilation
- JMSSerializerBundle - Easily serialize, and deserialize object graphs of any complexity (supports XML, JSON, YAML)
- KnpMenuBundle - Build object oriented menus
- StofDoctrineExtensionsBundle - Integrate doctrine extensions like Timestampable, Slugabble and Translatable etc
- VichUploaderBundle - Handle easy file upload
- IvoryCKEditorBundle - The bundle provides a CKEditor integration for your Symfony Project
- WhiteOctoberBreadcrumbsBundle - Easy breadcrumbs generation. However admin template use bultin Event Listeners comes with AvanzuAdminBundle and this breadcrumb bundle to handle generate breadcrumbs
- AvanzuAdminThemeBundle - AdminLTE integreation with Symfony
Minimum Symfony 3 requirements plus follows
Composer
Node JS and npm
Bower
Installation is very easy and simple. Please follow the instruction below
Clone a copy of this repository.
git clone https://github.com/sharfaz/Symfony3-Admin-Template.git
-
Create a database 'symfony' if not already exists.
-
Pull the dependencies using composer.
go to project folder
$ cd symfony3-admin-template
//this will pull all project required dependencies and installed in vendor folder.
$ composer install
Update database schema add user table for authentication. I have user bundle which extends FOSUserBundle functionality.
$ php bin/console doctrine:schema:update --force
//load the sample user data
$ php bin/console doctrine:fixtures:load // press 'y' when promoted
You must have Node, npm and Bower installed to use AdminBundle. Please refer corresponding websites how to install node, npm for your machine depending on OS. Once you installed Node.js install bowser
$ npm install bower
//if you using windows please update the bower executable path in app/config.yml file under
avanzu_admin_theme:
bower_bin: C:\Users\{username}\AppData\Roaming\npm\bower.cmd
if you using Linux/MacOSX please comment/remove the line. The default path will be used.
Install all required fontend Assets
#!linux
$ php bin/console avanzu:admin:fetch-vendor
Finally install assets as symlink and use Assetic to dump all assets to web folder
$ php bin/console assets:install --symlink
$ php bin/console assetic:dump
Run built in php server to fire up the site
$ php bin/console server:run
Admin username: admin Password: test
Happy Coding!!!