1. Create a new symfony project
With composer can be quickly skeleton project creating a new symfony:
composer create-project symfony/website-skeleton my-admin-demo
The skeleton project contains the main symfony components for a Web application and doctrine.
Now is a good time to check in the Porjket in a Versionierungsystem like GIT and to commit for the first time.
Optionally, symfony PHPUnit bridge can now be installed, When tests should be written:
composer require phpunit --dev
The database can now be configured in the .env file:
And are created with the following command:
php bin/console doctrine:database:create
2. Installation of the SonataAdmin bundle
This is for the creation of administration interfaces in symfony SonataAdmin bundle have been created and offers all possibilities, order to realise simple up to very extensive administration interfaces.
composer require sonata-project/admin-bundle
The SonataAdmin bundle requires yet an another bundle to the communication with the database, in the case of doctrine:
composer require sonata-project/doctrine-orm-admin-bundle
To view the backend, must be installed yet an .htaccess file, in the case of Apache Web server:
composer require symfony/apache-pack
Then the SonataAdmin should appear in the browser interface under:
Now you can add your own administration interfaces: Sonata documentation.