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. pattern-lab/plugin-faker

ActivePatternlab-plugin

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

Faker Support for Pattern Lab

v2.0.2(7y ago)7341.4k↓21.7%16[3 PRs](https://github.com/pattern-lab/plugin-php-faker/pulls)1MITPHPPHP &gt;=5.4

Since Jun 18Pushed 7y 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 1mo ago

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

[![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

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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

2583d 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)")[![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

[willdurand/faker-bundle

Put the awesome Faker lib into the DIC and populate your database with fake data.

2751.2M14](/packages/willdurand-faker-bundle)[bheller/images-generator

Generator of placeholder images for Faker

573.1M3](/packages/bheller-images-generator)[pattern-lab/patternengine-twig

Twig-based PatternEngine for Pattern Lab.

771.3M11](/packages/pattern-lab-patternengine-twig)[aleksip/plugin-data-transform

Data Transform Plugin for Pattern Lab PHP

34897.4k3](/packages/aleksip-plugin-data-transform)[pattern-lab/plugin-data-inheritance

Data inheritance based on pattern lineage for Pattern Lab.

13103.9k1](/packages/pattern-lab-plugin-data-inheritance)[hydreflab/jedi-faker

Faker extension for Star Wars junkie

1429.5k1](/packages/hydreflab-jedi-faker)

PHPackages © 2026

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