PHPackages                             redhead/mockyll - 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. redhead/mockyll

ActiveLibrary

redhead/mockyll
===============

Mocking library for PHP (&gt;= 5.4).

17PHP

Since Sep 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/redhead/mockyll)[ Packagist](https://packagist.org/packages/redhead/mockyll)[ RSS](/packages/redhead-mockyll/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mockyll
=======

[](#mockyll)

Nice and simple mocking library for PHP based on GMock for Groovy.

It offers:

- simple usage
- no complicated setup
- class and interface mocking based on inheritance
- partial mocks

Install
-------

[](#install)

Install the library using composer:

```
$ composer require redhead/mockyll:@dev
```

That's it!

Simple usage
------------

[](#simple-usage)

```
$mockController = new Mockyll\MockController;

$myClassMock = $mockController->mock('MyClass');
$myClassMock->greet('world')->returns('hello world!');

$mockController->play(function() use ($myClassMock) {
  $myClassMock->greet('world'); // == 'hello world!'
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/89646c973ea2034ea2cb8c9286c3ecccb944e55e12d21b348219122d3f483557?d=identicon)[redhead](/maintainers/redhead)

---

Top Contributors

[![redhead](https://avatars.githubusercontent.com/u/158482?v=4)](https://github.com/redhead "redhead (2 commits)")

### Embed Badge

![Health badge](/badges/redhead-mockyll/health.svg)

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

PHPackages © 2026

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