- PHP >=5.5.0
wget https://mike182uk.github.io/kata/downloads/kata-latest.phar # Download the phar
chmod +x kata.phar # Make the phar executeable
mv kata.phar /usr/bin/kata # Move the phar to your bin directory (optional)
kata create:workspace [-k|--kata <kata>] [-l|--language <language>] <path>
To undertake the Fizz Buzz kata in PHP:
kata create:workspace -k fizz_buzz -l php ./fizz_buzz_kata
kata
and language
are both optional parameters - If you do not pass a kata
or language
parameter, one will be selected at random.
Once the kata workspace has been created, the package manager for the selected language will be run automatically. To prevent this you can use the --no-deps
parameter:
kata create:workspace -k fizz_buzz -l php ./fizz_buzz_kata --no-deps
kata list:katas
kata list:languages