Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Symfony 7 — Template with Composer and FPM

PHP Symfony MariaDB Nginx

Useful documentations :

Symfony:

Docker:

Nginx:

Commands cheatsheet :

Spin up the docker stack

docker compose up
docker compose up --build # To rebuild the docker stack from scratch

Open a shell in the Symfony container

docker compose exec symfony bash # Be careful, move in the `webapp` folder once you are in the shell, to execute composer related commands

Create using the Maker bundle

php bin/console make:entity # Create an entity
php bin/console make:entity --api-resource # Create an entity which will be an API Platform resource

php bin/console make:controller # Create a controller
php bin/console make:fixtures # Create a new fixtures file which will populate the database 

Generate migration files

php bin/console make:migration # Create the file
php bin/console doctrine:migration:status # Check the migrations sync status with the database
php bin/console doctrine:migration:migrate # Run migrations
php bin/console doctrine:migration:rollup # Rollup a migration (revert it)

Debugging

php bin/console debug:router # Displays all the routes that are exposed by Symfony

Reset the database

php bin/console doctrine:database:drop --force # Drop the current database, the `--force` flag is needed
php bin/console doctrine:database:create # Create the database

Install a package

composer require <package> # Install a package
composer require --dev <package> # Install a development package

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages