PHP Bootstrap to play to WebAndCow challenges
git clone https://github.com/klnjmm/webandcow-challenge-bootstrap.git your-project-name
cd your-project-name
make init
make up
Let's code !
- .Open
.env
file and fillWEBANDCOW_API_KEY
andWEBANDCOW_CHALLENGE_CODE
variablesWEBANDCOW_API_KEY
can be copy from your profile pageWEBANDCOW_CHALLENGE_CODE
can be copy from the challenge webpage.
- Write your solution in
src/Solution.php
- Write your unit tests in
tests/units/SolutionTest.php
- Try your solution :
php index.php
Here a few commands that can help you :
- Launch unit tests
make unit-tests
- Launch code sniffer
make code-sniffer
- Challenge code unknown. Please copy it again from the challenge webpage in
WEBANDCOW_CHALLENGE_CODE
in your.env
file
Exception: Error when contacting API -- Array
(
[0] => Engine inconnu ou non valide
)
- Bad API KEY. Please copy it again from your profile page in
WEBANDCOW_API_KEY
in your.env
file
Exception: Error when contacting API -- Array
(
[0] => Key User non valide
)
Do whatever you want with this !