This is the public repository of the https://phpquiz.xyz website. It's a Symfony 5.1 application trying to respect best practices.
- The Symfony binary using at least PHP 7.4
- Docker and Docker compose
- Yarn
- And the usual Symfony application requirements.
Here are the versions I currently use:
- Symfony CLI v4.18.4
- Docker 19.03.12
- Docker-compose 1.26.2
- Yarn 1.22.4
As you can see, there no "full-docker-setup" yet. But feel free to contribute if you want one, it would be nice.
To install and start the project, run the following commands:
git clone [email protected]:strangebuzz/phpquiz.git
cd phpquiz
make install
make start
- Browse
http://127.0.0.1:8006
That's it; you should be ready to develop.
You can find the dev notes in the README.txt file.
To see the changes you do to the assets (Js, CSS), you must run yarn watch with the following command:
$ make watch
Execute this command to run PHPStan:
$ make cs
Execute this command to run the PHPUnit tests:
$ make test
There is a deploy file sample. To be able to deploy, copy it to config/prod/deploy.php
and modify the settings it contains. Then you can deploy in production with:
$ make deploy
Please create an an issue so we can talk about it.
- Verify that you have at least PHP 7.4 (
php -v
). - In other cases, verify your versions and eventually submit a bug report.
Thanks goes out to all these wonderful people:
COil | Fred |