PHPackages                             ozziest/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. [Testing &amp; Quality](/categories/testing)
4. /
5. ozziest/mocker

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

ozziest/mocker
==============

Simple mock objects for laravel bench packages

010PHP

Since Aug 8Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Mocker
======

[](#mocker)

Mocket is a simple mock creator for Eloquent Models under Laravel workbench.

Installation
------------

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "ozziest/defencers": "dev-master",
    }
}
```

Usage
-----

[](#usage)

```
use \Ozziest\Mocker\Eloquent

class SampleTest extends PHPUnit_Framework_TestCase {

	public function testSample()
	{
    	$mock = new Eloquent();
    	$mock = $mock->save(1, 123)->get();
	}

}
```

Properties
----------

[](#properties)

- `save`, `find`, `all`: Simple Eloquent methods
- `get`: Return mock object

Licence
-------

[](#licence)

[MIT](http://opensource.org/licenses/MIT)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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/2facdc256fbb7fd57510c101c009d6adb6f5cdf07ec7c5a304d30520e78c1357?d=identicon)[ozziest](/maintainers/ozziest)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

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