PHPackages                             patrick-maynard/mock-it-all - 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. patrick-maynard/mock-it-all

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

patrick-maynard/mock-it-all
===========================

A simple tool that allows developers to automatically generate mock logic for PHPUnit tests

v0.1.7(today)01↑2900%MITPHPPHP &gt;=8.0

Since Aug 14Pushed todayCompare

[ Source](https://github.com/patrickmaynard/mock-it-all)[ Packagist](https://packagist.org/packages/patrick-maynard/mock-it-all)[ Docs](http://home.patrickmaynard.com)[ RSS](/packages/patrick-maynard-mock-it-all/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (3)Versions (2)Used By (0)

mock-it-all
===========

[](#mock-it-all)

Tool for creating mock dependency chains automatically, letting you focus on the actual tests

How to use
----------

[](#how-to-use)

In a pre-existing PHP project do the following to install the tool:

```
composer require patrick-maynard/mock-it-all

```

... then run the `create-test-stub-with-mocks` command as shown below.

(This example creates stub test logic for the included President demo class.)

```
php ./vendor/bin/mock-it-all create-test-stub-with-mocks "PatrickMaynard\MockItAll\Stubs\President"

```

It is recommended that developers install this in development environments, not in test, stage or production environments.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29e8816b93911c32d13e510f21144e75769e172d46521a89e715f81f3a64c460?d=identicon)[patrickmaynard](/maintainers/patrickmaynard)

---

Top Contributors

[![patrickmaynard](https://avatars.githubusercontent.com/u/17260148?v=4)](https://github.com/patrickmaynard "patrickmaynard (28 commits)")

---

Tags

testingmockingdebugging

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/patrick-maynard-mock-it-all/health.svg)

```
[![Health](https://phpackages.com/badges/patrick-maynard-mock-it-all/health.svg)](https://phpackages.com/packages/patrick-maynard-mock-it-all)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[testo/testo

A lightweight PHP testing framework.

20319.6k160](/packages/testo-testo)

PHPackages © 2026

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