Code Katas with PHPUnit
If martial artists use kata as a method for exercise and practice, what might be the equivalent for coders like us? Coding katas are short, repeatable programming challenges which are meant to exercise everything from your focus, to your workflow.
In this series, one kata per episode, we'll work through a wide variety of challenges to build up your TDD process.
Series episodes
Programming Katas Explained
1m 31sLearn how programming katas help you master coding patterns through repetition. Build strong habits and improve skills in this engaging Laracasts episode!
60-Second PHPUnit Setup
51sSet up PHPUnit in 60 seconds! Learn to configure Composer and PSR-4 autoloading quickly, so you’re ready to start coding your first kata with ease.
Prime Factors Kata
14m 55sLearn to build a TDD-powered class that generates prime factors of any number. Master prime numbers and improve your coding skills with this hands-on kata!
Roman Numerals Kata
16m 47sTackle the Roman numerals kata with TDD! Build a class that converts numbers like 1, 6, and 10 into Roman numerals in this hands-on coding challenge.
Bowling Game Kata
23m 40sUse TDD to build a bowling game scorer and learn the rules along the way. Follow the lesson and check the source code on GitHub in this Laracasts episode!
String Calculator Kata
25m 3sBuild a String Calculator that adds numbers from a string, handles negatives, and ignores large values. Follow along and check the code on GitHub in this Laracasts episode!
Tennis Match Kata
36m 50sTackle the Tennis Match Kata to sharpen your coding skills with a fun, challenging scoring system. Follow along and check the solution on GitHub in this Laracasts episode!
FizzBuzz Kata
8m 35sTackle the classic FizzBuzz kata with confidence using your growing TDD skills. Practice clean, test-driven coding in this friendly Laracasts exercise. (157 characters)
The Gilded Rose Kata
27m 57sTackle the challenging Gilded Rose kata by refactoring code with polymorphism and clean design. Boost your skills step-by-step in this rewarding Laracasts lesson. (157 characters)
99 Bottles Kata
23m 41sMaster TDD by building the classic "99 Bottles of Beer" song step-by-step. Follow along with clear, hands-on coding in this engaging Laracasts episode!




