numerogeek / ultimate-symfony2-boilerplate
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 49
Watchers: 6
Forks: 14
Open Issues: 1
Type:project
Requires
- php: >=5.3.9
- avanzu/admin-theme-bundle: dev-master
- behat/behat: ^3.0
- behat/mink-extension: ^2.0
- behat/mink-goutte-driver: ^1.1
- behat/mink-selenium2-driver: ^1.2
- behat/symfony2-extension: ^2.0
- doctrine/dbal: <2.5
- doctrine/doctrine-bundle: ~1.4
- doctrine/doctrine-migrations-bundle: ^1.0
- doctrine/orm: ~2.2,>=2.2.3,<2.5
- egeloen/ckeditor-bundle: ~2.0
- friendsofsymfony/user-bundle: ~1.3
- helios-ag/fm-elfinder-bundle: ~5.0
- incenteev/composer-parameter-handler: ~2.0
- knplabs/knp-paginator-bundle: ^2.4
- liip/imagine-bundle: ^1.3
- mremi/contact-bundle: dev-master
- sensio/distribution-bundle: ~4.0
- sensio/framework-extra-bundle: ~3.0,>=3.0.2
- smart-core/accelerator-cache-bundle: ^1.0@dev
- stof/doctrine-extensions-bundle: ^1.1
- symfony/assetic-bundle: ~2.3
- symfony/monolog-bundle: ~2.4
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: 2.7.*
- vich/uploader-bundle: ^0.14.0
Requires (Dev)
- hautelook/alice-bundle: ^0.2.0
- sensio/generator-bundle: ~2.3
This package is auto-updated.
Last update: 2024-10-17 18:51:10 UTC
README
This is a boilerplate I've made to gain time when I need to kickstart projects
This ultimate symfony2 boilerplate comes with :
- FOSUserBundle : Provides user management for your Symfony2 Project. Compatible with Doctrine ORM & ODM, and Propel.
- IvoryCKEditorBundle : Provides a CKEditor integration for your Symfony2 project.
- StofDoctrineExtensionsBundle : Integration bundle for DoctrineExtensions by l3pp4rd in Symfony2
- VichUploaderBundle : A simple Symfony2 bundle to ease file uploads with ORM entities and ODM documents.
- LiipImagineBundle : Symfony2 Bundle to assist in imagine manipulation using the imagine library http://liip.ch
- KnpPaginatorBundle : SEO friendly Symfony2 paginator to sort and paginate http://knplabs.com/en/blog/knp-paginator-reborn
- [FMElfinderBundle] (https://github.com/helios-ag/FMElfinderBundle) : ElFinderBundle provides ElFinder integration with TinyMCE and CKEditor
- DoctrineMigrationsBundle : This bundle integrates the Doctrine2 Migrations library. into Symfony so that you can safely and quickly manage database migrations.
- MremiContactBundle : Provides a contact form for a Symfony2 project.
- AvanzuAdminThemeBundle : Admin Theme based on the AdminLTE Template for easy integration into symfony
- AcceleratorCacheBundle : Provide a command to clear PHP Accelerator cache from CLI
Installation
This boilerplate comes with all the bundles above enabled and preconfigured
The easiest way to get started is to clone the repository:
# Get the latest snapshot $ git clone https://github.com/numerogeek/ultimate-symfony2-boilerplate myproject $ cd myproject $ git remote rm origin $ mkdir -p web/uploads/posts #setup ACL (refer to the symfony documentation. $ HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1` $ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs web/uploads $ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs web/uploads #composer install $composer install #install assets $ php app/console assets:install --symlink # The following command require bower. ensure to install in order to use this command $ php app/console avanzu:admin:fetch-vendor #Create schema $ php app/console doctrine:database:create $ php app/console doctrine:migrations:migrate $ php app/console doctrine:fixtures:load # A superadmin user is created with the fixtures with username `admin` and password `admin`
Starter Kit
Go to http://www.myproject.local/app_dev.php/admin to have a look on what's coming with this bundle.
This boilerplate also comes with 4 customs bundle :
- UserBundle (inherits of FOSUserBundle to easily customize the entity) : very simple user bundle with a backoffice
- NumerogeekBlogBundle : a very simple blog bundle with a backoffice
- AppBundle : The one from the symfony installer, so you can kickstart your project right now !
- AdminBundle : which is the core of the admin part. There is not much in there because it mostly use the AvanzuAdminBundle
- FixturesBundle : see below.
What's the fixtures Bundle ?
Usually when you start a project, you need some dummy data. Instead of having a fixtures folder in each bundles, I have made a fixtures bundle which is basically just a folder to store all the fixtures of your project.
about MremiContact Bundle
The bundle comes fully configurated for you. I like to store the sent messages in the database, just in case there's a problem with the mail transport.
If you want to unactivate the storage in DB, you can set the store_data
to false
in the config.yml
.
For any further documentation, check the MremiContactBundle Documentation.