PHPackages                             peterrehm/php-test - 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. peterrehm/php-test

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

peterrehm/php-test
==================

CI Helper scripts

v0.4(7y ago)063MITShellPHP ^7.2CI failing

Since Feb 9Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (7)Used By (0)

php-test
========

[](#php-test)

This library aims to ease the test setup of standard PHP projects using PHPUnit and Behat using a phing build file.

Setup
-----

[](#setup)

- Include this library using composer

```
    composer require peterrehm/php-test --dev
```

- Copy the sample build file into your project root

```
   (project-root) $ cp vendor/peterrehm/php-test/build_local.xml build.xml
```

- Set up the test scripts

Create bin/run\_tests.sh and bin/run\_static\_analysis.sh. The simplest version would be as follows:

```
# bin/run_static_analysis.sh
#!/bin/bash
vendor/peterrehm/php-test/bin/run_static_analysis.sh

# bin/run_tests.sh
#!/bin/bash
vendor/peterrehm/php-test/bin/run_tests.sh coverage no-behat
```

Of course you could just copy from those files and add whatever logic you need to it. As it is common to need custom test preparations you can pass a third parameter to run tests with a custom script name.

If no script is provided a simple composer install will be executed. If you provide a custom script make sure to manually run the composer install.

```
# bin/run_tests.sh
#!/bin/bash
vendor/peterrehm/php-test/bin/run_tests.sh coverage no-behat /my/custom/script.sh

```

This command will be executed prior to the test execution.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~145 days

Recently: every ~181 days

Total

6

Last Release

2704d ago

PHP version history (2 changes)v0.1.0PHP ^7.0

v0.4PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2010989?v=4)[Peter Rehm](/maintainers/peterrehm)[@peterrehm](https://github.com/peterrehm)

---

Top Contributors

[![peterrehm](https://avatars.githubusercontent.com/u/2010989?v=4)](https://github.com/peterrehm "peterrehm (11 commits)")

---

Tags

behatcijenkinsphingphpunit

### Embed Badge

![Health badge](/badges/peterrehm-php-test/health.svg)

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k134.0M2.1k](/packages/slevomat-coding-standard)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M324](/packages/drupal-core-dev)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)

PHPackages © 2026

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