Browse all series
TestingIntermediate10 episodes

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 31s

Learn 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

51s

Set 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 55s

Learn 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 47s

Tackle 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 40s

Use 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 3s

Build 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 50s

Tackle 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 35s

Tackle 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 57s

Tackle 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 41s

Master 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!

Continue learning

Thumbnail for SOLID Principles in PHP
SOLID Principles in PHP

With Jeffrey Way

  • 5 episodes
  • Advanced
  • Techniques
Thumbnail for Write a Composer Package With Me
Write a Composer Package With Me

With Jeffrey Way

  • 7 episodes
  • Intermediate
  • Testing
Thumbnail for Visual Studio Code for PHP Developers
Visual Studio Code for PHP Developers

With Jeffrey Way

  • 18 episodes
  • Intermediate
  • Tooling
Thumbnail for What's New in PHP 7.4
What's New in PHP 7.4

With Jeffrey Way

  • 3 episodes
  • Intermediate
  • Languages
Thumbnail for Browser Testing With Laravel Dusk
Browser Testing With Laravel Dusk

With Andre Madarang

  • 4 episodes
  • Intermediate
  • Testing

Would you like to hear from Laracasts by email occasionally?