PHPackages                             phpblueprint/mocker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phpblueprint/mocker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phpblueprint/mocker
===================

PHPBlueprint Mocker Component

1.0.2(9y ago)0131MITPHPPHP &gt;=5.3.0

Since Mar 22Pushed 9y ago2 watchersCompare

[ Source](https://github.com/PHPBlueprint/mocker)[ Packagist](https://packagist.org/packages/phpblueprint/mocker)[ Docs](https://github.com/phpblueprint)[ RSS](/packages/phpblueprint-mocker/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHPBlueprint - Mocker Component
===============================

[](#phpblueprint---mocker-component)

Easily create and deploy code without rewriting common structures

> Create mockable templates for any PHP code and easily deploy new class structures, models, components, etc.

### Installation/Setup

[](#installationsetup)

Install the mocker component using composer

```
$ composer require phpblueprint/mocker
```

Easily create a blueprint of existing classes by added a basic @example tag to the document header

```
/**
 * Class documentation haeder example
 *
 * @example
 * class CLASSNAME extends \Blueprint\Http\Rest\Client {
 *      protected $param = 'FOO';
 *      public function __construct() {
 *
 *      }
 * }
 *
 * @author Damien Rose
 */
```

### Usage

[](#usage)

To create a new mocker of that class, run the blueprint command with the namespace\\class that contains the template document header : the name of the new class you are creating

```
composer blueprint \Namespace\With\Class:NewClassName
```

Once done, your root directory will contain a new file with mocked code template.

### TODO

[](#todo)

- improve code cleanliness
- add default namespace support
- add shortname support
- add config options to PHPBlueprint json
-

If you plan on using PHPBlueprint, any of its components, or if you plan on designing new components following the PHPBlueprint concept, share it and make sure to include PHPBlueprint in a mention or contributor thanks.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/010d483e475ec6eac1594d871e6962b5129d7168eab00a125ba0a1e48c34cdf1?d=identicon)[PHPBlueprint](/maintainers/PHPBlueprint)

---

Top Contributors

[![br0kenb1nary](https://avatars.githubusercontent.com/u/3453285?v=4)](https://github.com/br0kenb1nary "br0kenb1nary (3 commits)")

---

Tags

scaffoldblueprintphpblueprint

### Embed Badge

![Health badge](/badges/phpblueprint-mocker/health.svg)

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k118.7M691](/packages/symfony-maker-bundle)[laralib/l5scaffold

Extend Laravel 5's generators scaffold.

31474.2k](/packages/laralib-l5scaffold)[summerblue/generator

Extend Laravel's generators scaffold.

33540.6k](/packages/summerblue-generator)[acacha/llum

Llum (light in catalan language) illuminates your Laravel projects.

10826.0k](/packages/acacha-llum)

PHPackages © 2026

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