Adding Sonata Admin Bundle to Symfony 2.4
1. Navigate to folder of your project so you are at the same level as ‘composer.json’ and then runphp composer.phar require sonata-project/admin-bundle the appropiate command.
e.g for Sonata Admin bundle
php composer.phar require sonata-project/admin-bundle
and all dependencies etc will be updated.
Then you need to: php composer.phar require sonata-project/doctrine-orm-admin-bundle
If you dont have ‘git’ installed some dependancies fail so load git. On Ubuntu:
need to install git
apt-get install git-core