- Install the development app
- Follow the best practice
- How to control your code syntax ?
The development app use docker and docker-compose, before continue to follow the guide, please install these requirements.
Now, we will configure the application on your machine, edit:
-
docker-compose.override.ym: configure daemon access like the forwarded ports of nginx to access your app, and db ports for debug.
cp docker-compose.override.yml.dist docker-compose.override.yml vi docker-compose.override.yml
That's finish in a few time, now, just execute:
make install
And voilĂ !!! Your app is installed and ready to use.
There is a beautiful guide about the best practice :) You can find it on the Symfony Documentation - Best Practice.
For a better structure of the code, we use Coding standards: PSR-0, PSR-1, PSR-2 and PSR-4. You can found some informations on the synfony documentation page.
In the project you have a php-cs-fixer.phar file, the program's documentation.
Some commands:
- List files with mistakes
make php-cs
- Fix files:
make php-cs-fix