This project is the 8th project of the Developer PHP / Symfony formation of Openclassrooms.
The first objective of this project was to migrate a Symfony 3.3 project to a newer version, here my choice was the latest Symfony LTS, 5.4.
The second objective was to implement unit and functional tests via PHPUnit and to fix/add some features.
The last objective was to perform a quality and performance audit of the project, via Blackfire and Codacy mainly.
- PHP v7.4.26
- Apache v2.4.48
- MySQL v8.0.24
- Server : for the server you can turn to the classics: WAMP, MAMP, XAMPP ...Or test the best of the swiss knives server: Laragon, my favorite ❤️
https://github.com/leCheveuCodeur/TodoList.git
composer install
# DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=8"
###> Admin configuration, used in fixtures loading ###
ADMIN_PSEUDO='Admin'
ADMIN_EMAIL='your@email.com'
ADMIN_PASSWORD='yourPassword'
make db
1 - create your database :
php bin/console d:d:c
2 - create the structure in your database :
php bin/console d:m:m
3 - and install fixturesfor have first contents and your Admin account :
php bin/console d:f:l -n
1 - Download the latest version of the APCu file 👉HERE,
2 - Unzip the file,
3 - Copy/paste the php_apcu.dll
file in your php_last_version/ext
folder,
4 - Activate in the control panel of your server the APCu extension for PHP,
5 - Check the activation via the command php -m
, where you should see the extension in the listed modules.
- OPTION 1 - Use the shortcut of my Makefile ❤️
make t
- OPTION 2 - Use the command with the PHP console
php bin/phpunit