PHPackages                             league/factory-muffin-faker - 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. league/factory-muffin-faker

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

league/factory-muffin-faker
===========================

The goal of this package is to wrap faker to make it super easy to use with factory muffin.

v2.3.0(5y ago)4411.3M↑24.1%19[2 PRs](https://github.com/thephpleague/factory-muffin-faker/pulls)20MITPHPPHP &gt;=5.4.0

Since Dec 22Pushed 2y ago3 watchersCompare

[ Source](https://github.com/thephpleague/factory-muffin-faker)[ Packagist](https://packagist.org/packages/league/factory-muffin-faker)[ Docs](http://factory-muffin.thephpleague.com/)[ GitHub Sponsors](https://github.com/GrahamCampbell)[ Fund](https://tidelift.com/funding/github/packagist/league/factory-muffin-faker)[ RSS](/packages/league-factory-muffin-faker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (10)Used By (20)

Factory Muffin Faker 2.3
========================

[](#factory-muffin-faker-23)

[![StyleCI Status](https://camo.githubusercontent.com/7c0effd90d5c5e58134405b59ce0f255bd3929d4efc1e2b8f32fe09117cf811b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f32373838303732382f736869656c64)](https://github.styleci.io/repos/27880728)[![Build Status](https://camo.githubusercontent.com/7fe677acd604fbb3dda6bf9f662736168b1cbac2f6068a6c54cd667c70f4755a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7468657068706c65616775652f666163746f72792d6d756666696e2d66616b65722f54657374733f6c6162656c3d5465737473267374796c653d666c61742d737175617265)](https://github.com/thephpleague/factory-muffin-faker/actions?query=workflow%3ATests)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/a0e4e2573226b26be174dadad9c6e73a052e9e470988bd8148460e377de0b7f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f666163746f72792d6d756666696e2d66616b65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/factory-muffin-faker/releases)[![Total Downloads](https://camo.githubusercontent.com/e5fd513049c21f9d76ea6fa7d15dec908fccc7183831a6e30f34dab65f0edca3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f666163746f72792d6d756666696e2d66616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/factory-muffin-faker)

The goal of this package is to wrap [Faker](https://github.com/FakerPHP/Faker) to make it super easy to use with [Factory Muffin](https://github.com/thephpleague/factory-muffin).

Note that this library does not actually require Factory Muffin in order to work, so may be used else where too. The whole point of this library is to wrap Faker in closures so the actual generation can be executed at a later point.

Installing
----------

[](#installing)

[PHP](https://php.net) 5.4+ and [Composer](https://getcomposer.org) are required.

In your composer.json, simply add `"league/factory-muffin-faker": "^2.3"` to your `"require-dev"` section:

```
{
    "require-dev": {
        "league/factory-muffin-faker": "^2.3"
    }
}
```

Contributing
------------

[](#contributing)

Please check out our [contribution guidelines](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

Factory Muffin Faker is a wrapper around [Faker](https://github.com/FakerPHP/Faker) to make it super easy to use with [Factory Muffin](https://github.com/thephpleague/factory-muffin), and is currently maintained by [Graham Campbell](https://github.com/GrahamCampbell). Thank you to all our wonderful [contributors](https://github.com/thephpleague/factory-muffin-faker/contributors) too.

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an email to Graham Campbell at . All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/thephpleague/factory-muffin-faker/security/policy).

License
-------

[](#license)

Factory Muffin Faker is licensed under [The MIT License (MIT)](LICENSE).

For Enterprise
--------------

[](#for-enterprise)

Available as part of the Tidelift Subscription

The maintainers of `league/factory-muffin-faker` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-league-factory-muffin-faker?utm_source=packagist-league-factory-muffin-faker&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 94.8% 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 ~272 days

Recently: every ~149 days

Total

9

Last Release

1982d ago

Major Versions

v1.0.0 → v2.0.02016-05-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

![](https://avatars.githubusercontent.com/u/68361?v=4)[Scott Robertson](/maintainers/scottrobertson)[@scottrobertson](https://github.com/scottrobertson)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (55 commits)")[![krsriq](https://avatars.githubusercontent.com/u/2337648?v=4)](https://github.com/krsriq "krsriq (1 commits)")[![maxmirazh33](https://avatars.githubusercontent.com/u/2692282?v=4)](https://github.com/maxmirazh33 "maxmirazh33 (1 commits)")[![pfuhrmann](https://avatars.githubusercontent.com/u/1627445?v=4)](https://github.com/pfuhrmann "pfuhrmann (1 commits)")

---

Tags

testingfactoryfaker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/league-factory-muffin-faker/health.svg)

```
[![Health](https://phpackages.com/badges/league-factory-muffin-faker/health.svg)](https://phpackages.com/packages/league-factory-muffin-faker)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

78611.9M97](/packages/zenstruck-foundry)[league/factory-muffin

The goal of this package is to enable the rapid creation of objects for the purpose of testing.

53713.6M46](/packages/league-factory-muffin)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8217.0M43](/packages/orchestra-workbench)[laravel-shift/factory-generator

Generate factories from existing models

49697.9k](/packages/laravel-shift-factory-generator)[jonpurvis/faker-stripe

Faker provider for generating fake Stripe IDs

8762.2k](/packages/jonpurvis-faker-stripe)

PHPackages © 2026

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