Faker

Generate realistic fake data for seeding, testing, and anonymizing PHP apps

Library
Composer
vv1.24.1
3,989stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
54/100Fair
Development Activity12
Maintenance32
Community72
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
84/100Excellent
Architecture85
Code Quality85
Innovation82
Learning Curve88

Faker is a PHP library that generates fake but realistic-looking data for you. Whether you need to bootstrap a database, create good-looking XML documents, fill in a persistence layer to stress test it, or anonymize data taken from a production service, Faker provides an expressive API for producing names, addresses, phone numbers, emails, lorem text, and dozens of other data types.

Community-maintained as the successor to the original fzaninotto/faker, FakerPHP offers localized providers for many regions and a pluggable provider architecture, making it a staple of PHP test suites and fixture tooling.

What You Get

  • A fluent Generator API with dozens of built-in data formatters (names, emails, addresses, dates, text, payments)
  • Locale-aware providers covering many languages and regions
  • Modifiers such as unique(), optional(), and valid() for constraining generated values
  • A pluggable provider and container architecture for adding your own custom data generators

Common Use Cases

  • Seeding development and test databases with realistic sample records
  • Building fixtures and factories for automated test suites
  • Anonymizing or masking production data for safe use in lower environments

Under The Hood

Architecture - Faker\Factory::create() builds a Generator and registers the default providers (Person, Address, Internet, Company, DateTime, Payment, and others) for the chosen locale. The Generator uses magic __get/__call to route property and method access to whichever provider supplies that formatter, while decorator generators (UniqueGenerator, ValidGenerator, DefaultGenerator, ChanceGenerator) wrap it to implement unique(), valid(), optional(), and default() semantics. A PSR-11 Container and Extension interfaces support the modern, explicitly-typed provider API.

Tech Stack - Pure PHP supporting 7.4 and 8.x, depending only on psr/container and symfony/deprecation-contracts. It uses Composer for distribution with PSR-4 autoloading under the Faker\ namespace, and the dev toolchain includes PHPUnit, PHPStan, Psalm, and a Roave backward-compatibility check.

Code Quality - The project is mature and heavily tested, with 170+ test files, static analysis via PHPStan and Psalm (with baselines), type-coverage tracking, and Codecov reporting. Providers are cleanly separated by data category and locale, though recent commit activity is low as the library is largely feature-complete.

API Design - The developer experience is a key strength: a single Factory::create() call yields a generator whose data accessors read almost like English ($faker->firstName, $faker->safeEmail, $faker->dateTimeBetween). Extensive documentation on fakerphp.github.io and intuitive modifier chaining keep the learning curve low, and the pluggable provider model makes domain-specific extensions straightforward.

Used by 21 apps in this directory

Other

Akaunting

Invoicing Finance

10,070

Open-source online accounting for small businesses and freelancers — invoices, expenses, and reporting without monthly fees or vendor lock-in.

View details
98
Repo Health
73
Technical
63
Dependency
Updated yesterday
PHP
72%
MIT

Bagisto

Analytics · Ecommerce

27,983

Open-source Laravel eCommerce platform for building multi-vendor marketplaces, B2B stores, headless commerce, and AI-powered storefronts.

View details
93
Repo Health
75
Technical
69
Dependency
Built with
PHP72%
Blade22%
Updated today
PHP
63%
Other

BillaBear

Ecommerce · Invoicing Finance

754

Self-hostable subscription management and billing platform with Stripe integration, tax automation, configurable workflows, and Twig-based document generation.

View details
47
Repo Health
66
Technical
66
Dependency
Built with
PHP63%
Vue18%
Gherkin13%
Updated 2 months ago
PHP
100%
Other

Cachet

Monitoring

15,220

The open-source, self-hosted status page system that keeps your users informed during outages and maintenance windows.

View details
86
Repo Health
67
Technical
76
Dependency
Built with
PHP100%
Updated 2 days ago
PHP
79%
Apache 2.0

Coolify

Devops · Hosting Control Panel

60,738

Open-source self-hosted PaaS — deploy apps, databases and 280+ services on your own servers with no vendor lock-in

View details
92
Repo Health
86
Technical
72
Dependency
Built with
PHP79%
Blade18%
Updated yesterday
PHP
78%
Other

Craft CMS

CMS

3,601

A developer-first PHP CMS with clean-slate content modeling, auto-generated GraphQL API, and a four-tier edition system that scales from solo projects to enterprise deployments.

View details
96
Repo Health
83
Technical
63
Dependency
Built with
PHP78%
JavaScript14%
Updated today
PHP
48%
AGPL 3.0

Crater

Invoicing Finance

8,341

Open source invoicing and billing platform for freelancers and small businesses — create estimates, track expenses, accept Stripe payments, and run recurring invoices from your own server.

View details
54
Repo Health
68
Technical
69
Dependency
Built with
PHP48%
Vue40%
Updated 2 years ago
PHP
82%
MIT

Databasement

Databases · Devops · Developer Tools

1,974

Self-hosted database backup manager with a web UI for scheduling, encrypting, and restoring MySQL, PostgreSQL, MongoDB, SQL Server, SQLite, Firebird, and Redis to S3, SFTP, Samba, or local storage.

View details
81
Repo Health
77
Technical
69
Dependency
Built with
PHP82%
Blade17%
Updated 4 days ago
Vue
54%
GPL 3.0

Financial Freedom

Invoicing Finance

2,910

Own your financial data with a self-hosted, privacy-first budgeting app that replaces Mint and YNAB.

View details
49
Repo Health
67
Technical
75
Dependency
Built with
Vue54%
PHP44%
Updated 3 months ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search