PHP code katas and exercises using Pest PHP.
Find a file
2020-07-12 16:22:00 +01:00
.github/workflows init 2020-07-04 08:21:08 +01:00
src Flatten array 2020-07-12 16:22:00 +01:00
tests Flatten array 2020-07-12 16:22:00 +01:00
.gitignore init 2020-07-04 08:21:08 +01:00
composer.json Flatten array 2020-07-12 16:22:00 +01:00
composer.lock Anagrams 2020-07-04 11:20:53 +01:00
Makefile init 2020-07-04 08:21:08 +01:00
phpunit.xml init 2020-07-04 08:21:08 +01:00
README.md Flatten array 2020-07-12 16:22:00 +01:00

PHP katas with Pest PHP

PHP code katas, tested with Pest PHP. Based on exercises from Exercism.io.

Includes:

  • Anagrams: select an anagram for a word from a list of condidates.
  • Flatten Array: take a nested list and return a single flattened list with all values except nil/null.
  • Bob: returns different responses based on input.
  • Bowling: calculate the score for a game of bowling.
  • Grade School: given students' names along with the grade that they are in, create a roster for the school.
  • Rock, paper, scissors
  • Roman numerals: convert a number into its roman numeral value.