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

AbandonedArchivedPatternlab-plugin[Utility &amp; Helpers](/categories/utility)

pattern-lab/plugin-faker
========================

Faker Support for Pattern Lab

v2.0.2(7y ago)7344.2k↑60.2%15[3 issues](https://github.com/pattern-lab/plugin-php-faker/issues)[3 PRs](https://github.com/pattern-lab/plugin-php-faker/pulls)1MITPHPPHP &gt;=5.4

Since Jun 18Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/pattern-lab/plugin-php-faker)[ Packagist](https://packagist.org/packages/pattern-lab/plugin-faker)[ Docs](http://patternlab.io)[ RSS](/packages/pattern-lab-plugin-faker/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (8)Used By (1)

Important

Pattern Lab is no longer actively maintained. All repositories, along with the rest of the @pattern-lab ecosystem on GitHub and npm, have been deprecated and archived. The code, releases, and history remain available so the work stays discoverable and forks can continue independently under the MIT license. No new releases, security patches, or issue triage will be performed. [Read the full message](https://github.com/pattern-lab), and thank you.

[![license](https://camo.githubusercontent.com/177022f08b0d6bae56697f1b9392eee61ba19476c158791bd9147cc6bfd5fc9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7061747465726e2d6c61622f706c7567696e2d7068702d66616b65722e737667)](https://camo.githubusercontent.com/177022f08b0d6bae56697f1b9392eee61ba19476c158791bd9147cc6bfd5fc9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7061747465726e2d6c61622f706c7567696e2d7068702d66616b65722e737667)[![Packagist](https://camo.githubusercontent.com/6b91518392e9a284e08c7e27216dd602f0cd1bd94c85a2521cbc6c623a2089fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061747465726e2d6c61622f706c7567696e2d66616b65722e737667)](https://packagist.org/packages/pattern-lab/plugin-faker) [![Gitter](https://camo.githubusercontent.com/1aab01ee0e000a7579622d70bc989eedef838c7d907e28309101419e0afd7b1d/68747470733a2f2f696d672e736869656c64732e696f2f6769747465722f726f6f6d2f7061747465726e2d6c61622f7068702e737667)](https://gitter.im/pattern-lab/php)

Faker Plugin for Pattern Lab
============================

[](#faker-plugin-for-pattern-lab)

The Faker Plugin adds [Faker](https://github.com/fzaninotto/Faker) support to Pattern Lab. The Faker Plugin will create unique content each time Pattern Lab is generated. You can also use the Faker Plugin to provide locale appropriate content.

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

[](#installation)

To add the Faker Plugin to your project using [Composer](https://getcomposer.org/) type:

```
composer require pattern-lab/plugin-faker

```

See Packagist for [information on the latest release](https://packagist.org/packages/pattern-lab/plugin-faker).

Usage
-----

[](#usage)

You can create fake data in your `json` or `yml` data files by using this format:

```
"key": "Faker.[formatter]([options])"

```

If a formatter has no options or you want to use the formatter's default options you can use the following format:

```
"key": "Faker.[formatter]"

```

See below for a list of formatters and their options.

Example
-------

[](#example)

To create a random first name without regard to gender you can add the following to your `json` or `yml` data files:

```
"firstName": "Faker.firstName"

```

To specify a gender you would use:

```
"firstName": "Faker.firstName('female')"

```

Formatters
----------

[](#formatters)

The Faker Plugin supports the following content formatters:

- `Faker\Provider\en_US\Person`
- `Faker\Provider\en_US\Address`
- `Faker\Provider\en_US\PhoneNumber`
- `Faker\Provider\en_US\Company`
- `Faker\Provider\Lorem`
- `Faker\Provider\Internet`
- `Faker\Provider\Color`
- `Faker\Provider\Payment`
- `Faker\Provider\DateTime`
- `Faker\Provider\Image`
- `Faker\Provider\Miscellaneous`

See the official repository for a [list of options available to each formatter](https://github.com/fzaninotto/Faker#formatters).

Locales
-------

[](#locales)

The content produced by Faker can be localized based on a Faker locale. If the Faker locale isn't supported by a formatter the content will fall back to the default `en_US`. There is a [list of Faker locales](https://github.com/fzaninotto/Faker/tree/master/src/Faker/Provider).

To update your Faker locale you can either directly edit `./config/config.yml` or use the command line option:

```
php core/console --config --set plugins.faker.locale=[locale]

```

For example:

```
php core/console --config --set plugins.faker.locale=fr_FR

```

Disabling the Plugin
--------------------

[](#disabling-the-plugin)

To disable the Faker plugin you can either directly edit `./config/config.yml` or use the command line option:

```
php core/console --config --set plugins.faker.enabled=false

```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance51

Moderate activity, may be stable

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 84.2% 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 ~207 days

Recently: every ~259 days

Total

6

Last Release

2628d ago

Major Versions

v1.0.2 → v2.0.02016-07-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/25d0cba915480bf76aa78007b98384c010e753508452e35dc3b93b79698bd103?d=identicon)[dmolsen](/maintainers/dmolsen)

![](https://www.gravatar.com/avatar/987cdfed8075c463b2a985c2b4e05b7041b4e97f243f77cc29e4c85a8791a515?d=identicon)[EvanLovely](/maintainers/EvanLovely)

---

Top Contributors

[![dmolsen](https://avatars.githubusercontent.com/u/2746?v=4)](https://github.com/dmolsen "dmolsen (16 commits)")[![AndyIRC](https://avatars.githubusercontent.com/u/26382882?v=4)](https://github.com/AndyIRC "AndyIRC (1 commits)")[![bmuenzenmeyer](https://avatars.githubusercontent.com/u/298435?v=4)](https://github.com/bmuenzenmeyer "bmuenzenmeyer (1 commits)")[![EvanLovely](https://avatars.githubusercontent.com/u/569699?v=4)](https://github.com/EvanLovely "EvanLovely (1 commits)")

---

Tags

fakerpattern lab

### Embed Badge

![Health badge](/badges/pattern-lab-plugin-faker/health.svg)

```
[![Health](https://phpackages.com/badges/pattern-lab-plugin-faker/health.svg)](https://phpackages.com/packages/pattern-lab-plugin-faker)
```

###  Alternatives

[bheller/images-generator

Generator of placeholder images for Faker

573.1M3](/packages/bheller-images-generator)[aleksip/plugin-data-transform

Data Transform Plugin for Pattern Lab PHP

34905.8k3](/packages/aleksip-plugin-data-transform)[hydreflab/jedi-faker

Faker extension for Star Wars junkie

1430.4k1](/packages/hydreflab-jedi-faker)[emanueleminotto/faker-placehold-it-provider

placehold.it provider for Faker

1423.5k1](/packages/emanueleminotto-faker-placehold-it-provider)[gourmet/faker

Faker support for CakePHP 3

189.4k1](/packages/gourmet-faker)[andrefigueira/blog-article-faker

Generate random blog article titles and content (including markdown) using faker

1415.0k](/packages/andrefigueira-blog-article-faker)

PHPackages © 2026

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