This is the template repo for the Beginner Level
PHP Track
. Please follow to the below instructions to get started.
- Fork this repository.
- Clone the repository to your local computer.
- composer install
Within the cloned folder you should see the index.php file. This php codefile should contain the solutions to the requirement assessment exercise.
- Open the index.php code file in your favourite text/code editor.
- Read the instructions or any helpful text within the code file.
- Add your solutions to the provided function.
- Commit your solution
- git add index.php
- git commit -m 'solution_name: cohort 4'
- git push origin master
- submit your forked repository URL on the provided SCA Google Form
# src/index.php
function prime($input)
{
// code goes here
}
function solution($input)
{
return prime($input);
}
$input = (int)$argv[1];
echo solution($input);
php -f src/index.php <input>
# Install depedencies
composer install
# run test
./vendor/bin/phpunit tests
For technical issue, please contact: ***