Symfony Flex
composer create-project symfony/skeleton meinprojekt cd meinprojekt a2enmod rewrite service apache2 restart composer require symfony/apache-pack composer require symfony/twig composer require annotations composer require symfony/orm-pack composer require symfony/maker-bundle --dev In Vhost folgendes schreiben/ändern: DocumentRoot /var/www/meinprojekt/public <Directory /var/www/meinprojekt/public> AllowOverride All Order Allow,Deny Allow from All </Directory>
Bestehende Datenbankstruktur in Doctrine importieren und Code automatisch erstellen
php bin/console doctrine:mapping:import 'App\Entity' annotation --path=src/Entity php bin/console make:entity --regenerate App