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

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

enhance-php/enhance-php
=======================

PHP unit testing framework with built in mocks and stubs. Runs in the browser, or via the command line.

1.9.0(1y ago)67917[3 issues](https://github.com/Enhance-PHP/Enhance-PHP/issues)Apache-2.0PHPPHP &gt;=5.6CI passing

Since Jun 23Pushed 1y ago11 watchersCompare

[ Source](https://github.com/Enhance-PHP/Enhance-PHP)[ Packagist](https://packagist.org/packages/enhance-php/enhance-php)[ Docs](https://github.com/Enhance-PHP/Enhance-PHP)[ RSS](/packages/enhance-php-enhance-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

[![Self Test](https://github.com/Enhance-PHP/Enhance-PHP/actions/workflows/test.yml/badge.svg)](https://github.com/Enhance-PHP/Enhance-PHP/actions/workflows/test.yml)

A unit testing framework with mocks and stubs. Built for PHP, in PHP!

Quick Start: Just add `EnhanceTestFramework.php` and you are ready to go.

- [Documentation](https://github.com/Enhance-PHP/Enhance-PHP/wiki)
- [View the changelog](https://github.com/Enhance-PHP/Enhance-PHP/blob/main/CHANGELOG.md)

Supported PHP Versions
----------------------

[](#supported-php-versions)

We track [officially supported PHP versions](https://www.php.net/supported-versions.php).

- PHP 8.4 nightly
- PHP 8.3
- PHP 8.2
- PHP 8.1
- PHP 8.0
- PHP 7.4
- PHP 5.6

License
-------

[](#license)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Community
---------

[](#community)

Note - this project is still active. I know you check the revision dates, but we have kept Enhance lightweight and stable, which means we don't need to keep updating it all the time :)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

690d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e132a58c242510a02375872984be505a6b1adcf152214c0e96fb291d929c74ac?d=identicon)[thomasbreuss](/maintainers/thomasbreuss)

---

Top Contributors

[![Steve-Fenton](https://avatars.githubusercontent.com/u/1036595?v=4)](https://github.com/Steve-Fenton "Steve-Fenton (41 commits)")[![tbreuss](https://avatars.githubusercontent.com/u/1334161?v=4)](https://github.com/tbreuss "tbreuss (19 commits)")[![sras](https://avatars.githubusercontent.com/u/6322381?v=4)](https://github.com/sras "sras (14 commits)")[![kinncj](https://avatars.githubusercontent.com/u/292542?v=4)](https://github.com/kinncj "kinncj (8 commits)")[![LewisW](https://avatars.githubusercontent.com/u/17803?v=4)](https://github.com/LewisW "LewisW (6 commits)")[![andrei-tofan](https://avatars.githubusercontent.com/u/23150031?v=4)](https://github.com/andrei-tofan "andrei-tofan (3 commits)")[![Waateur](https://avatars.githubusercontent.com/u/803172?v=4)](https://github.com/Waateur "Waateur (2 commits)")[![orangutanboy](https://avatars.githubusercontent.com/u/1040279?v=4)](https://github.com/orangutanboy "orangutanboy (1 commits)")[![isidromerayo](https://avatars.githubusercontent.com/u/971708?v=4)](https://github.com/isidromerayo "isidromerayo (1 commits)")[![Toshbrown](https://avatars.githubusercontent.com/u/1186363?v=4)](https://github.com/Toshbrown "Toshbrown (1 commits)")

---

Tags

phptestingunitstubsmocks

### Embed Badge

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

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

###  Alternatives

[php-vfs/php-vfs

Virtual file system implementation for use with PHP unit testing.

572.7M24](/packages/php-vfs-php-vfs)[quizlet/hammock

Hammock is a stand-alone mocking library for Hacklang.

27445.5k](/packages/quizlet-hammock)[doppiogancio/mocked-client

A simple way to mock a client

2174.9k3](/packages/doppiogancio-mocked-client)[viraj/cakephp-integrated

Integration testing for CakePHP

1968.9k](/packages/viraj-cakephp-integrated)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k34](/packages/robiningelbrecht-phpunit-coverage-tools)

PHPackages © 2026

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