Output of the "The perfect MakeFile for Symfony (at least for me! 😁)" Symfony snippet

Environment:

  • Strangebuzz Snippet VM: 2.6.0
  • Symfony: 5.2.6

Code execution output:

 —— 🐝 The Strangebuzz Symfony Makefile 🐝 ——————————————————————————————————— 
help                           Outputs this help screen
 —— Composer 🧙‍♂️ ———————————————————————————————————————————————————————————— 
install                        Install vendors according to the current composer.lock file
 —— PHP 🐘 (macOS with brew) ————————————————————————————————————————————————— 
php-upgrade                    Upgrade PHP to the last version
php-set-7-3                    Set php 7.3 as the current PHP version
php-set-7-4                    Set php 7.4 as the current PHP version
php-set-8-0                    Set php 8.0 as the current PHP version
 —— Symfony 🎵 ——————————————————————————————————————————————————————————————— 
sf                             List all Symfony commands
cc                             Clear the cache. DID YOU CLEAR YOUR CACHE????
warmup                         Warmup the cache
fix-perms                      Fix permissions of all var files
assets                         Install the assets with symlinks in the public folder
purge                          Purge cache and logs
 —— Symfony binary 💻 ———————————————————————————————————————————————————————— 
cert-install                   Install the local HTTPS certificates
serve                          Serve the application with HTTPS support (add "--no-tls" to disable https)
unserve                        Stop the webserver
 —— elasticsearch 🔎 ————————————————————————————————————————————————————————— 
populate                       Reset and populate the Elasticsearch index
list-index                     List all indexes on the cluster
delete-index                   Delete a given index (parameters: index=app_2021-01-05-075600")
 —— Docker 🐳 ———————————————————————————————————————————————————————————————— 
up                             Start the docker hub (MySQL,redis,adminer,elasticsearch,head,Kibana)
docker-build                   Builds the PHP image
down                           Stop the docker hub
check                          Docker check
wait-for-mysql                 Wait for MySQL to be ready
wait-for-elasticsearch         Wait for Elasticsearch to be ready
bash                           Connect to the application container
 —— Project 🐝 ——————————————————————————————————————————————————————————————— 
start                          Start docker, load fixtures, populate the Elasticsearch index and start the webserver
reload                         Load fixtures and repopulate the Elasticserch index
stop                           Stop docker and the Symfony binary server
cc-redis                       Flush all Redis cache
commands                       Display all commands in the project namespace
load-fixtures                  Build the DB, control the schema validity, load fixtures and check the migration status
init-snippet                   Initialize a new snippet
 —— Tests ✅ ————————————————————————————————————————————————————————————————— 
test                           Run main functional and unit tests
test-all                       Run all tests
 —— Coding standards ✨ —————————————————————————————————————————————————————— 
cs                             Run all coding standards checks
static-analysis                Run the static analysis (PHPStan)
stan                           Run PHPStan
lint-php                       Lint files with php-cs-fixer
fix-php                        Fix files with php-cs-fixer
 —— Deploy & Prod 🚀 ————————————————————————————————————————————————————————— 
deploy                         Full no-downtime deployment with EasyDeploy (with pre-deploy Git hooks)
env-check                      Check the main ENV variables of the project
le-renew                       Renew Let's Encrypt HTTPS certificates
 —— Yarn 🐱 / JavaScript ————————————————————————————————————————————————————— 
dev                            Rebuild assets for the dev env
watch                          Watch files and build assets when needed for the dev env
build                          Build assets for production
lint-js                        Lints JS coding standarts
fix-js                         Fixes JS files
 —— Stats 📜 ————————————————————————————————————————————————————————————————— 
stats                          Commits by the hour for the main author of this project
 —— JWT 🕸 ——————————————————————————————————————————————————————————————————— 
jwt-generate-keys              Generates the main JWT ket set
jwt-create-ok                  Create a JWT for a valid test account
jwt-create-nok                 Login attempt with wrong credentials
jwt-test                       Test a JWT token to access an API Platform resource