php bin/console server:run [boundIp[:port]]: Open a server. Same asphp -S 127.0.0.1:8000 -t publicphp bin/console server:start [boundIp[:port]]: Start as a servicephp bin/console server:stop: Stop as a servicenpm run webpack:run:dev: Start the assets server
php bin/console make:entity Something: create model named Somethingphp bin/console doctrine:migrations:diff: Generate SQL diff for modelsphp bin/console doctrine:migrations:migrate: Apply diff
php bin/console debug:translation fr: show debug infos about locale frphp bin/console translation:update --dump-messages --force fr: refresh translation files for locale fr
For MySQL connection: https://symfony.com/doc/current/doctrine.html Read the documentation at https://symfony.com/doc
- Run
composer require symfony/web-profiler-bundle - In
config/bundles.php, ensureSymfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
https://github.com/liweiyi88/julianli
https://github.com/JulieAlary/symfony4Start