PHPackages                             jlsangon/yahoo-weater-kata - 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. jlsangon/yahoo-weater-kata

ActiveLibrary

jlsangon/yahoo-weater-kata
==========================

Kata YahooWeater

04PHP

Since May 23Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jlsangom/yahooWeatherKata)[ Packagist](https://packagist.org/packages/jlsangon/yahoo-weater-kata)[ RSS](/packages/jlsangon-yahoo-weater-kata/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

kata/php
========

[](#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/wiki.pl?KataCatalogue).

When you do programming katas, you use TDD. That's why I have included PHPUnit, Mockery, PHPSpec and Prophecy as composer dependencies. Choose the testing framework you feel more comfortable (or play with both).

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 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.

```
php bin/phpunit

```

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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/1422512?v=4)[Carlos Sánchez](/maintainers/casg23)[@Casg23](https://github.com/Casg23)

### Embed Badge

![Health badge](/badges/jlsangon-yahoo-weater-kata/health.svg)

```
[![Health](https://phpackages.com/badges/jlsangon-yahoo-weater-kata/health.svg)](https://phpackages.com/packages/jlsangon-yahoo-weater-kata)
```

PHPackages © 2026

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