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

Environment:

  • Strangebuzz Snippet VM: 6.4.2
  • Symfony: 6.4.5

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-8-2                    Set php 8.2 as the current PHP version
php-set-8-3                    Set php 8.3 as the current PHP version
php-set-8-1                    Set php 8.1 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 (PHP,caddy,MySQL,redis,adminer,elasticsearch)
build                          Builds the images (php + caddy)
down                           Stop the docker hub
check                          Docker check
sh                             Log to the docker container
logs                           Show live logs
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 Meilisearch 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 tests with optionnal suite and filter
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
encore                         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              Generate the main JWT ket set (you can use the "lexik:jwt:generate-keypair" command now)
jwt-create-ok                  Create a JWT for a valid test account (you can use the "lexik:jwt:generate-token" command now)
jwt-create-nok                 Login attempt with wrong credentials
jwt-test                       Test a JWT token to access an API Platform resource
 —— Code Quality reports 📊 —————————————————————————————————————————————————— 
report-metrics                 Run the phpmetrics report
coverage                       Create the code coverage report with PHPUnit