PHPackages                             talesoft/tale-dev-tool - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. talesoft/tale-dev-tool

ActiveLibrary[Testing &amp; Quality](/categories/testing)

talesoft/tale-dev-tool
======================

Talesoft unit tests, coverage and code style tools

0.2.5(7y ago)03475MITPHPPHP &gt;=7.1.0

Since Dec 27Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Talesoft/tale-dev-tool)[ Packagist](https://packagist.org/packages/talesoft/tale-dev-tool)[ Docs](http://talesoft.codes)[ RSS](/packages/talesoft-tale-dev-tool/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (5)Versions (25)Used By (5)

[![Packagist](https://camo.githubusercontent.com/d69367864337834144cc906d9827696d806a3b6a09bc76f57447b6827d35af94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616c65736f66742f74616c652d6465762d746f6f6c2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/talesoft/tale-dev-tool)[![License](https://camo.githubusercontent.com/2969b474f97f9b1ee3b67998e346e038e66d71b73ba4b851b514e221c83a0f49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f54616c65736f66742f74616c652d6465762d746f6f6c2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/Talesoft/tale-dev-tool/blob/master/LICENSE.md)[![CI](https://camo.githubusercontent.com/c644980025abdc14235d404fdf5f208931e7fd8df00f761d4da9ac837ba417c9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f54616c65736f66742f74616c652d696e666c6563746f722e7376673f7374796c653d666f722d7468652d6261646765)](https://travis-ci.org/Talesoft/tale-dev-tool)[![Coverage](https://camo.githubusercontent.com/88288b07ee9579a93c14f21a1c257aeb28c9e8343fa34a741f1c9d32b61b5de6/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f54616c65736f66742f74616c652d6465762d746f6f6c2e7376673f7374796c653d666f722d7468652d6261646765)](https://codeclimate.com/github/Talesoft/tale-dev-tool)

Tale Dev Tool
=============

[](#tale-dev-tool)

What is Tale Dev Tool?
----------------------

[](#what-is-tale-dev-tool)

It's a fork of the [phug/dev-tool](https://github.com/phug-php/dev-tool) tailored to the needs of tale-\* components.

You can use it for any kind of composer-based PHP-project.

It provides default configuration for PHPUnit, PHP CodeSniffer and PHPDocumentor.

It can also check code coverage percentages and report the coverage to CodeClimate.

Installation
------------

[](#installation)

Install via Composer

```
composer require talesoft/tale-dev-tool --dev
```

Usage
-----

[](#usage)

During development, you will mostly call the tool like this:

```
./vendor/bin/tale-dev

```

### Available Commands

[](#available-commands)

#### `install`

[](#install)

Updates composer and installs composer dependencies

#### `check`

[](#check)

Runs `unit-tests:run`, `code-style:check` and `coverage:check` in this order and fails as soon as one of the commands fail.

Return code is the return code of the failed command.

If `--report` is set, this command will generate code-coverage data and report it to code-climate.

I usually have a .travis.yml set up for this that contains something like

```
addons:
    code_climate:
        repo_token:
```

Check this repo's .travis.yml to get an idea. You can also check the repo of e.g. [tale-stream](https://github.com/Talesoft/tale-stream) to see how it's used in an actual library.

> Notice: This is an [outdated](https://github.com/codeclimate/php-test-reporter) way to report coverage and I need to update it. Feel free to ignore it, even though it will probably still work for a while.

#### `code-style:check`

[](#code-stylecheck)

Automatically scans code for problems regarding `PSR-2` and attempts to fix them if wanted.

This runs `phpcs` with a default config or a local config, if found.

#### `code-style:fix`

[](#code-stylefix)

Automatically fixes code-problems regarding `PSR-2`.

This runs `phpcbf` with a default config or a local config, if found.

#### `unit-tests:run`

[](#unit-testsrun)

Runs unit tests located in `./tests`.

You can pass `--coverage-text` and `--coverage-clover=` to generate code-coverage information.

The `--filter`, `--group` and `--testdox` options are passed through to PHPUnit, if set.

#### `coverage:check`

[](#coveragecheck)

Checks existing code-coverage data and fails if a specific percentage coverage (**80%** by default) is not reached.

Accepts `--input-file=` that points to a coverage file generated by `unit-tests:run --coverage-clover=`

#### `coverage:report`

[](#coveragereport)

Reports coverage data to CodeClimate.

Accepts `--input-file=` that points to a coverage file generated by `unit-tests:run --coverage-clover=`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.5% 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.

###  Release Activity

Cadence

Every ~30 days

Total

21

Last Release

2870d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

0.2.1PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/75a80e0830e63c723808d021d3a1648a2643db60f4ac2e40842da05f227f956b?d=identicon)[TorbenKoehn](/maintainers/TorbenKoehn)

---

Top Contributors

[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (71 commits)")[![TorbenKoehn](https://avatars.githubusercontent.com/u/1403556?v=4)](https://github.com/TorbenKoehn "TorbenKoehn (12 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")

---

Tags

dev-toolstale

### Embed Badge

![Health badge](/badges/talesoft-tale-dev-tool/health.svg)

```
[![Health](https://phpackages.com/badges/talesoft-tale-dev-tool/health.svg)](https://phpackages.com/packages/talesoft-tale-dev-tool)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k136.1M963](/packages/brianium-paratest)

PHPackages © 2026

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