Skip to content

Instantly share code, notes, and snippets.

@hsoulier
Last active May 15, 2021 15:08
Show Gist options
  • Save hsoulier/adb77f84b16e1f1c1b0f418372640127 to your computer and use it in GitHub Desktop.
Save hsoulier/adb77f84b16e1f1c1b0f418372640127 to your computer and use it in GitHub Desktop.
Symfony Cheatsheet

Symfony 5

CLI

symfony new --full my_project # Create empty project symfony (web app)
symfony serve # Start the dev server

Controller

bin/console make:controller # Create new Controller

Entity

bin/console make:entity # Create new Entity
bin/console make:migration # Generate SQL Code from the Entities for the Db
bin/console make:migration:migrate # Apply SQL Code from migration (create Db tables from the Entities)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment