PHPackages                             code-kata/php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. code-kata/php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

code-kata/php
=============

PHP Kata skeleton based on kata/php

035PHP

Since Sep 7Pushed 5y agoCompare

[ Source](https://github.com/weatheredwatcher/php-kata)[ Packagist](https://packagist.org/packages/code-kata/php)[ RSS](/packages/code-kata-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

code-kata/php
=============

[](#code-kataphp)

PHP skeleton for doing coding katas
-----------------------------------

[](#php-skeleton-for-doing-coding-katas)

*Code Kata* is a term coined by Dave Thomas, co-author of the book The Pragmatic Programmer, in a bow to the Japanese concept of kata in the martial arts. A code kata is an exercise in programming which helps a programmer hone their skills through practice and repetition. As of October 2011, Dave Thomas has published 21 different katas.

You can find some to start practicing [here](http://codingdojo.org/cgi-bin/index.pl?KataCatalogue).

This is a project framework based on [this](https://github.com/carlosbuenosvinos/php-kata).

I've updated to use phpunit 7 and phpspec 4. I also plan on updating this to my own specific style and way of running the katas.

Practicing a kata
=================

[](#practicing-a-kata)

Let's imagine you want to practice "Bowling game kata". Details about this kata can be found [here](http://codingdojo.org/cgi-bin/wiki.pl?KataBowling).

You will need composer.

```
curl -sS https://getcomposer.org/installer | php

```

Then, use "create-project" command to clone this project as a template and create a new one in your computer.

```
php composer.phar create-project code-kata/php bowling-kata dev-master

```

Then add your classes to 'src/Kata' and your test cases to 'src/Kata/Tests' and run 'php bin/phpunit' to run your tests.

What I have done, is I have created a Kata/ folder and I setup a new Kata with a Makefile

```
make test

```

TestCase examples
=================

[](#testcase-examples)

If you run 'php bin/phpunit' you will see the following output.

```
PHPUnit 3.8-gc4f2bcd by Sebastian Bergmann.

Configuration read from /Users/carlosbuenosvinos/Documents/Web/bowling/phpunit.xml

...

Time: 91 ms, Memory: 1.75Mb
OK (3 tests, 3 assertions)

```

That's because you will find one class and its TestCase in the project in order to help you. You can delete them.

Adder is a class that adds two numbers and AdderTest tests that.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 78.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/113852?v=4)[David Duggins](/maintainers/weatheredwatcher)[@weatheredwatcher](https://github.com/weatheredwatcher)

---

Top Contributors

[![weatheredwatcher](https://avatars.githubusercontent.com/u/113852?v=4)](https://github.com/weatheredwatcher "weatheredwatcher (15 commits)")[![carlosbuenosvinos](https://avatars.githubusercontent.com/u/351553?v=4)](https://github.com/carlosbuenosvinos "carlosbuenosvinos (2 commits)")[![nachosalvador](https://avatars.githubusercontent.com/u/8913851?v=4)](https://github.com/nachosalvador "nachosalvador (1 commits)")[![quimcalpe](https://avatars.githubusercontent.com/u/1057151?v=4)](https://github.com/quimcalpe "quimcalpe (1 commits)")

### Embed Badge

![Health badge](/badges/code-kata-php/health.svg)

```
[![Health](https://phpackages.com/badges/code-kata-php/health.svg)](https://phpackages.com/packages/code-kata-php)
```

###  Alternatives

[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73147.2k29](/packages/jaxon-php-jaxon-core)[waad/laravel-profanity-filter

Laravel Profanity Filter - Powerful PHP package for detecting, filtering, and masking profanity in multiple languages. Supports leet speak, custom word lists, case sensitivity, and seamless Laravel integration.

205.7k](/packages/waad-laravel-profanity-filter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
