{"id":13513343,"url":"https://github.com/pattern-lab/plugin-php-faker","last_synced_at":"2025-06-14T21:37:31.212Z","repository":{"id":57036364,"uuid":"61080045","full_name":"pattern-lab/plugin-php-faker","owner":"pattern-lab","description":"The Faker Plugin adds Faker support to Pattern Lab.","archived":false,"fork":false,"pushed_at":"2019-04-23T04:24:19.000Z","size":11,"stargazers_count":7,"open_issues_count":6,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T01:11:25.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://patternlab.io/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pattern-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-14T00:54:47.000Z","updated_at":"2020-05-02T09:00:04.000Z","dependencies_parsed_at":"2022-08-23T21:00:19.698Z","dependency_job_id":null,"html_url":"https://github.com/pattern-lab/plugin-php-faker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fplugin-php-faker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fplugin-php-faker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fplugin-php-faker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fplugin-php-faker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pattern-lab","download_url":"https://codeload.github.com/pattern-lab/plugin-php-faker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252023399,"owners_count":21682180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T04:00:53.193Z","updated_at":"2025-05-02T10:32:20.310Z","avatar_url":"https://github.com/pattern-lab.png","language":"PHP","readme":"![license](https://img.shields.io/github/license/pattern-lab/plugin-php-faker.svg)\n[![Packagist](https://img.shields.io/packagist/v/pattern-lab/plugin-faker.svg)](https://packagist.org/packages/pattern-lab/plugin-faker) [![Gitter](https://img.shields.io/gitter/room/pattern-lab/php.svg)](https://gitter.im/pattern-lab/php)\n\n# Faker Plugin for Pattern Lab\n\nThe 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.\n\n## Installation\n\nTo add the Faker Plugin to your project using [Composer](https://getcomposer.org/) type:\n\n    composer require pattern-lab/plugin-faker\n\nSee Packagist for [information on the latest release](https://packagist.org/packages/pattern-lab/plugin-faker).\n\n## Usage\n\nYou can create fake data in your `json` or `yml` data files by using this format:\n\n    \"key\": \"Faker.[formatter]([options])\"\n\nIf a formatter has no options or you want to use the formatter's default options you can use the following format:\n\n    \"key\": \"Faker.[formatter]\"\n\nSee below for a list of formatters and their options.\n\n## Example\n\nTo create a random first name without regard to gender you can add the following to your `json` or `yml` data files:\n\n    \"firstName\": \"Faker.firstName\"\n\nTo specify a gender you would use:\n\n    \"firstName\": \"Faker.firstName('female')\"\n\n## Formatters\n\nThe Faker Plugin supports the following content formatters:\n\n* `Faker\\Provider\\en_US\\Person`\n* `Faker\\Provider\\en_US\\Address`\n* `Faker\\Provider\\en_US\\PhoneNumber`\n* `Faker\\Provider\\en_US\\Company`\n* `Faker\\Provider\\Lorem`\n* `Faker\\Provider\\Internet`\n* `Faker\\Provider\\Color`\n* `Faker\\Provider\\Payment`\n* `Faker\\Provider\\DateTime`\n* `Faker\\Provider\\Image`\n* `Faker\\Provider\\Miscellaneous`\n\nSee the official repository for a [list of options available to each formatter](https://github.com/fzaninotto/Faker#formatters).\n\n## Locales\n\nThe 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).\n\nTo update your Faker locale you can either directly edit `./config/config.yml` or use the command line option:\n\n    php core/console --config --set plugins.faker.locale=[locale]\n\nFor example:\n\n    php core/console --config --set plugins.faker.locale=fr_FR\n\n## Disabling the Plugin\n\nTo disable the Faker plugin you can either directly edit `./config/config.yml` or use the command line option:\n\n    php core/console --config --set plugins.faker.enabled=false\n","funding_links":[],"categories":["PHP","External tools"],"sub_categories":["Pattern Lab"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattern-lab%2Fplugin-php-faker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpattern-lab%2Fplugin-php-faker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattern-lab%2Fplugin-php-faker/lists"}