PHPackages                             facile-it/moka - 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. facile-it/moka

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

facile-it/moka
==============

Shorthand for creating mock objects

v2.4.0(6y ago)911.6k[1 PRs](https://github.com/facile-it/moka/pulls)MITPHP ^7.1

Since Jun 14Compare

[ Source](https://github.com/facile-it/moka)[ Packagist](https://packagist.org/packages/facile-it/moka)[ Docs](http://github.com/facile-it/moka)[ RSS](/packages/facile-it-moka/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (8)Versions (32)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/facile-it/moka).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 65% 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 ~35 days

Recently: every ~188 days

Total

28

Last Release

2287d ago

Major Versions

v0.2.0 → v1.0.02017-06-19

v1.3.3 → v2.0.0-alpha32017-06-28

v1.4.0 → v2.0.0-alpha12017-06-28

PHP version history (3 changes)v0.1.0PHP &gt;=7.0

v2.2.0PHP &gt;=7.1

v2.3.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7df11f5f16c6c3169e8b01921dfdd67e8e06cb4102b522082fdf6d900bc9e8e3?d=identicon)[Giuffre](/maintainers/Giuffre)

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

---

Top Contributors

[![xzhayon](https://avatars.githubusercontent.com/u/1392022?v=4)](https://github.com/xzhayon "xzhayon (254 commits)")[![Giuffre](https://avatars.githubusercontent.com/u/1702559?v=4)](https://github.com/Giuffre "Giuffre (134 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (3 commits)")

---

Tags

testingphpunitmockingmockerymockprophecyphaketesting-toolsmocking-library

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/facile-it-moka/health.svg)

```
[![Health](https://phpackages.com/badges/facile-it-moka/health.svg)](https://phpackages.com/packages/facile-it-moka)
```

###  Alternatives

[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.2M395](/packages/php-mock-php-mock-phpunit)[blastcloud/guzzler

Supercharge your app or SDK with a testing library specifically for Guzzle.

272419.3k35](/packages/blastcloud-guzzler)[janmarek/mockista

Mockista is library for mocking, which I've written, because I find mocking in PHPUnit awful.

29221.0k28](/packages/janmarek-mockista)[elliotchance/concise

Concise is test framework for using plain English and minimal code, built on PHPUnit.

45223.8k4](/packages/elliotchance-concise)[lastzero/test-tools

Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit

2244.3k13](/packages/lastzero-test-tools)

PHPackages © 2026

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