Skip to content

she-code-africa/php-ta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Track Assessment Template

Instructions

This is the template repo for the Beginner Level PHP Track. Please follow to the below instructions to get started.

Settings Up

  • Fork this repository.
  • Clone the repository to your local computer.

[Optional] Install Test Dependencies

  • composer install

Working on your solutions

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

Example

# src/index.php

function prime($input)
{
  // code goes here
}

function solution($input)
{
  return prime($input);
}


$input = (int)$argv[1];
echo solution($input);

Running

php -f src/index.php <input>

Testing

# Install depedencies
composer install

# run test
./vendor/bin/phpunit tests

Need Help

For technical issue, please contact: ***

About

PHP Track Assessment Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages