PHPackages                             avonis/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. avonis/plugin-faker

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

avonis/plugin-faker
===================

Faker Support for Pattern Lab

v3.2(7y ago)014.2kMITPHPPHP &gt;=5.4

Since Jun 18Pushed 7y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (2)Versions (16)Used By (0)

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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 69.6% 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 ~69 days

Recently: every ~12 days

Total

14

Last Release

2719d ago

Major Versions

v1.0.2 → v2.0.02016-07-03

v2.1.0 → v3.12018-12-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/bef92e52c7e140c7127467a3e669735d24d7391940c7c71be05398557698539f?d=identicon)[avonis](/maintainers/avonis)

---

Top Contributors

[![dmolsen](https://avatars.githubusercontent.com/u/2746?v=4)](https://github.com/dmolsen "dmolsen (16 commits)")[![sh-avonis](https://avatars.githubusercontent.com/u/35739714?v=4)](https://github.com/sh-avonis "sh-avonis (6 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/avonis-plugin-faker/health.svg)

```
[![Health](https://phpackages.com/badges/avonis-plugin-faker/health.svg)](https://phpackages.com/packages/avonis-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

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)[emanueleminotto/faker-placehold-it-provider

placehold.it provider for Faker

1423.5k1](/packages/emanueleminotto-faker-placehold-it-provider)[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)
