PHPackages                             php-mock/php-mock-integration - 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. php-mock/php-mock-integration

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

php-mock/php-mock-integration
=============================

Integration package for PHP-Mock

3.1.0(3mo ago)1410.5M—7.8%63WTFPLPHPPHP &gt;=5.6CI passing

Since Apr 1Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/php-mock/php-mock-integration)[ Packagist](https://packagist.org/packages/php-mock/php-mock-integration)[ Docs](https://github.com/php-mock/php-mock-integration)[ GitHub Sponsors](https://github.com/michalbundyra)[ RSS](/packages/php-mock-php-mock-integration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (18)Used By (3)

[![.github/workflows/tests.yml](https://github.com/php-mock/php-mock-integration/actions/workflows/tests.yml/badge.svg)](https://github.com/php-mock/php-mock-integration/actions/workflows/tests.yml)

PHP-Mock integration package
============================

[](#php-mock-integration-package)

This is a support package for PHP-Mock integration into other frameworks. You'll find these integrations:

- [php-mock/php-mock-phpunit](https://github.com/php-mock/php-mock-phpunit) - PHPUnit integration
- [php-mock/php-mock-mockery](https://github.com/php-mock/php-mock-mockery) - Mockery integration
- [php-mock/php-mock-prophecy](https://github.com/php-mock/php-mock-prophecy) - Prophecy (phpspec) integration

License and authors
-------------------

[](#license-and-authors)

This project is free and under the WTFPL. Responsable for this project is Markus Malkusch .

Donations
---------

[](#donations)

If you like PHP-Mock and feel generous donate a few Bitcoins here: 1335STSwu9hST4vcMRppEPgENMHD2r1REK

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance81

Actively maintained with recent releases

Popularity55

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 51.4% 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 ~264 days

Recently: every ~86 days

Total

16

Last Release

102d ago

Major Versions

0.4 → 1.0.02015-10-26

1.0.0 → 2.0.02017-02-17

2.5.0-beta1 → 3.0.02025-03-08

PHP version history (3 changes)0.1PHP &gt;=5.4

1.0.0PHP &gt;=5.5

2.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/06864e2afad0a0cb0b46016664bf5895c3378c8b413e0bddd03075011fc6d731?d=identicon)[webimpress](/maintainers/webimpress)

![](https://www.gravatar.com/avatar/97ee86e5e22b92173b2787cad0ba7ac144109e126221c6d21adecdae32ef37fc?d=identicon)[malkusch](/maintainers/malkusch)

---

Top Contributors

[![malkusch](https://avatars.githubusercontent.com/u/1623984?v=4)](https://github.com/malkusch "malkusch (19 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (14 commits)")[![herndlm](https://avatars.githubusercontent.com/u/5738896?v=4)](https://github.com/herndlm "herndlm (2 commits)")[![crocodele](https://avatars.githubusercontent.com/u/1522694?v=4)](https://github.com/crocodele "crocodele (1 commits)")[![icarus94](https://avatars.githubusercontent.com/u/11488493?v=4)](https://github.com/icarus94 "icarus94 (1 commits)")

---

Tags

testBDDTDDmockstubtest doublefunction

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36918.1M98](/packages/php-mock-php-mock)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[php-mock/php-mock-mockery

Mock built-in PHP functions (e.g. time()) with Mockery. This package relies on PHP's namespace fallback policy. No further extension is needed.

392.1M96](/packages/php-mock-php-mock-mockery)[php-mock/php-mock-prophecy

Mock built-in PHP functions (e.g. time()) with Prophecy. This package relies on PHP's namespace fallback policy. No further extension is needed.

16496.6k15](/packages/php-mock-php-mock-prophecy)[kahlan/kahlan

The PHP Test Framework for Freedom, Truth and Justice.

1.2k1.2M247](/packages/kahlan-kahlan)

PHPackages © 2026

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