fzaninotto/Faker

Created Dec 15, 2020 · View the fzaninotto/Faker repository page

Faker is a PHP library that generates fake data for you

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

About fzaninotto/Faker

Faker is a PHP library for generating realistic fake data on demand. It provides an extensive collection of "formatters" organized into providers that can produce everything from names and addresses to email addresses, phone numbers, dates, payment card details, and much more. The library is designed for developers who need to populate databases with test data, create realistic XML documents, stress test persistence layers, or anonymize production data.

The library includes dozens of built-in providers covering common data types like person information, addresses, internet details, company data, dates and times, colors, files, images, UUIDs, and barcodes. Faker supports multiple locales beyond the default English, with language-specific providers available for countries like Germany, Spain, France, Japan, and many others. It also offers modifiers like `unique()`, `optional()`, and `valid()` to control how data is generated, and provides integrations with popular PHP ORMs and ODMs including Doctrine, Propel, Eloquent, and CakePHP for populating entities directly into databases.

The project is now archived and no longer maintained. The original author decided to sunset the project, as documented in their blog post explaining the reasons behind this decision. Despite being archived, Faker remains widely used in the PHP ecosystem as a foundational tool for test data generation.

Share this video