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

ActivePatternlab-plugin

synetic/patternlab-plugin-faker
===============================

Faker Support for Pattern Lab

3.0.1(8y ago)01.7kMITPHPPHP &gt;=5.4

Since Jun 18Pushed 8y ago5 watchersCompare

[ Source](https://github.com/SyneticNL/patternlab-plugin-faker)[ Packagist](https://packagist.org/packages/synetic/patternlab-plugin-faker)[ Docs](http://github.com/syneticnl/patternlab-php-faker)[ RSS](/packages/synetic-patternlab-plugin-faker/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

[![Packagist](https://camo.githubusercontent.com/179da9fbc54344f4a264fd826f1c4aaa67126e6fc9fe063b178b2f48f34cf288/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796e657469632f7061747465726e6c61622d706c7567696e2d66616b65722e737667)](https://packagist.org/packages/synetic/patternlab-plugin-faker)

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 synetic/patternlab-plugin-faker

```

See Packagist for [information on the latest release](https://packagist.org/packages/synetic/patternlab-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

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

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 ~119 days

Recently: every ~148 days

Total

6

Last Release

3017d ago

Major Versions

v1.0.2 → v2.0.02016-07-03

v2.0.0 → 3.02018-02-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/8955432c1c04f2c6aac108090cbb335cc3ab5fea09751025d7deda41495c6bcc?d=identicon)[synetic](/maintainers/synetic)

---

Top Contributors

[![dmolsen](https://avatars.githubusercontent.com/u/2746?v=4)](https://github.com/dmolsen "dmolsen (16 commits)")[![jbertoen](https://avatars.githubusercontent.com/u/380511?v=4)](https://github.com/jbertoen "jbertoen (3 commits)")

---

Tags

fakerpattern lab

### Embed Badge

![Health badge](/badges/synetic-patternlab-plugin-faker/health.svg)

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