Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
When reporting issues, please try to be as descriptive as possible, and include as much relevant information as you can. A step-by-step guide on how to reproduce the issue will greatly increase the chances of your issue being resolved in a timely manner.
Our contributing policy is described in our Coding Guideline (Phpfastcache Repository)
If you want to contribute to the repository you will need to install/configure some things first.
To run tests follow the steps:
- Run
composer install
(Do not ignore platform reqs) - Run
./vendor/bin/phpcs lib/ --report=summary
- Run
./vendor/bin/phpmd lib/ ansi phpmd.xml
- Run
./vendor/bin/phpstan analyse lib/ -c phpstan_lite.neon 2>&1
If you are on Windows environment simply run the file quality.bat
located at the root of the project to run the step 2, 3 and 4 in once.
The last command will run all the unit tests of the project. If an error appears, fix it then you can submit your pull request.