Skip to content

This is the public repository of the phpquiz.xyz project.

License

Notifications You must be signed in to change notification settings

strangebuzz/phpquiz

Repository files navigation

PHP Quiz 🐘

This is the public repository of the https://phpquiz.xyz website. It's a Symfony 5.1 application trying to respect best practices.

Badges 🏅

All Contributors MIT License

SymfonyInsight

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

How to install this project 📚

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:

  1. git clone git@github.com:strangebuzz/phpquiz.git
  2. cd phpquiz
  3. make install
  4. make start
  5. Browse http://127.0.0.1:8006

That's it; you should be ready to develop.

Dev 📔

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

Coding standards ✨

Execute this command to run PHPStan:

$ make cs

Tests ✅

Execute this command to run the PHPUnit tests:

$ make test

Deploy 🚀

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

Contribute 🤝

Please create an an issue so we can talk about it.

Troubleshooting 🐛

  • Verify that you have at least PHP 7.4 (php -v).
  • In other cases, verify your versions and eventually submit a bug report.

All Contributors

Thanks goes out to all these wonderful people:


COil

Fred