Symfony 7 cheatsheet

Symfony 7: Setup

6 common Symfony 7 tasks.

Create a full web app

Create a project with Twig, Doctrine, forms and other web tools. Needs the Symfony CLI.

symfony new my_project --webapp

Create a minimal project

Create a small project with Composer and add packages as you need them.

composer create-project symfony/skeleton my_project

Start the local server

Start the Symfony local web server in the background.

symfony server:start -d

Stop the local server

Stop the background server.

symfony server:stop

Show project information

Print Symfony and PHP versions, the environment and debug mode.

php bin/console about

Check PHP requirements

Check that your PHP setup can run Symfony.

symfony check:requirements

Was this page helpful?