To easily test your symfony applications on futurs versions of PHP
- Symfony Framework Bundle >= 5.1
- Docker
- Use Symfony binary
- Use database and mailcatcher from docker-compose.yaml
- Step 1, go to your projet and start your database and mailcatcher with docker-compose
- Step 2, copy paste docker-compose-php81RC6.yaml in your project
- Step 3, replace PROJECT_FOLDER_NAME by the exact name of your current folder
- Step 4, start this new docker-compose-php81RC6.yaml
docker-compose -f docker-compose-php81RC6.yaml up --force-recreate
- Step 5, go to http://localhost:8000/ on your favorite browser, and you should be on PHP8.1 RC6
I wanted to see if i got deprecated codes on my project, but I didn't want install PHP8.1 RC6 on my macbook. Docker is a perfect solution to test it quickly.
You can adapt php81RC6 to your needs.
I only test it on my mac