Faker

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

Library
Composer
vv1.24.1
3,999 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
52 /100 Fair
Development Activity 4
Maintenance 32
Community 72
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
84 /100 Excellent
Architecture 85
Code Quality 85
Innovation 82
Learning Curve 88

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

JavaScript
72%
AGPL 3.0

Fleetbase

Logistics

4,390

Modular open-source logistics and supply chain operating system

View details
93
Repo Health
75
Technical
68
Dependency
Built with
JavaScript 72%
Updated 6 days ago
PHP
57%
Other

Hi.Events

Ecommerce · Scheduling

4,074

Self-hosted event ticketing platform that keeps your attendee data, brand, and revenue completely under your control.

View details
90
Repo Health
84
Technical
67
Dependency
Built with
PHP 57%
TypeScript 37%
Updated 5 days ago
PHP
84%
Other

Invoice Ninja

Invoicing Finance · Project Management

10,311

Self-hostable invoicing, time-tracking, and multi-gateway payment platform for freelancers and small businesses, with built-in e-invoicing compliance for EU and global standards.

View details
97
Repo Health
83
Technical
62
Dependency
Built with
PHP 84%
Updated 1 weeks ago
PHP
87%
AGPL 3.0

Kimai

Invoicing Finance · Project Management

5,095

Professional open-source time tracking with invoicing, multi-user support, SAML/LDAP auth, and a full REST API—self-host it or use the cloud.

View details
94
Repo Health
78
Technical
64
Dependency
Built with
PHP 87%
Updated 5 days ago
PHP
51%
MIT

Krayin CRM

CRM · Ecommerce

24,049

Free, open-source Laravel & Vue.js CRM for SMEs and enterprises to manage the complete customer lifecycle.

View details
90
Repo Health
68
Technical
67
Dependency
Built with
PHP 51%
Blade 41%
Updated 1 weeks ago
PHP
65%
AGPL 3.0

LinkStack

Marketing

3,914

Self-hosted, privacy-focused Linktree alternative with themes, analytics, and a drag-and-drop admin panel.

View details
74
Repo Health
56
Technical
68
Dependency
Built with
PHP 65%
Blade 35%
Updated 1 weeks ago
PHP
62%
Other

OpnForm

Forms Surveys · Marketing

3,865

Build unlimited, embeddable forms with no code — powered by AI, logic rules, and real-time analytics

View details
91
Repo Health
75
Technical
65
Dependency
Built with
PHP 62%
Vue 28%
Updated 6 days ago
PHP
70%
AGPL 3.0

Pixelfed

Social Media

7,129

A decentralized, self-hosted photo sharing platform built on ActivityPub for the open Fediverse.

View details
94
Repo Health
68
Technical
66
Dependency
Built with
PHP 70%
Vue 21%
Updated 6 days ago
PHP
76%
MIT

SendPortal

Marketing

2,180

Self-hosted email marketing with full data control, multi-workspace isolation, and seamless integration with Amazon SES, SendGrid, Mailgun, and more

View details
65
Repo Health
59
Technical
71
Dependency
Built with
PHP 76%
Blade 24%
Updated 1 weeks 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