PHPackages                             crjhoan/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. crjhoan/faker

ActiveLibrary

crjhoan/faker
=============

Faker is a PHP library that generates fake data for you.

v2.0.0(5y ago)02.3kMITPHPPHP ^5.3.3 || ^7.0 || ^8.0

Since Jul 10Pushed 5y agoCompare

[ Source](https://github.com/crjhoan/Faker)[ Packagist](https://packagist.org/packages/crjhoan/faker)[ RSS](/packages/crjhoan-faker/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (19)Used By (0)

Faker
=====

[](#faker)

[![Monthly Downloads](https://camo.githubusercontent.com/ce050298b4d904a04163e9a9ae217828604f7822145c53b9f5b1e59b4a0f06f4/68747470733a2f2f706f7365722e707567782e6f72672f63726a686f616e2f66616b65722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/fzaninotto/faker)[![Continuous Integration](https://github.com/crjhoan/Faker/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/fzaninotto/Faker/actions)[![codecov](https://camo.githubusercontent.com/673c64e7144f408a8eaabdde7fc087be19c3610a5ba5de2d95a0d13b0bac0b1c/68747470733a2f2f636f6465636f762e696f2f67682f63726a686f616e2f46616b65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/fzaninotto/Faker)[![SensioLabsInsight](https://camo.githubusercontent.com/48149c973e11c5606499e925f3d2894c6d84abc19ed7bd093df33ac256bc30ad/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65636562373861392d333864342d346164352d386236622d6235326633323365333534392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/eceb78a9-38d4-4ad5-8b6b-b52f323e3549)

Faker is a PHP library that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.

Faker is heavily inspired by Perl's [Data::Faker](http://search.cpan.org/~jasonk/Data-Faker-0.07/), and by ruby's [Faker](https://rubygems.org/gems/faker).

Faker requires PHP &gt;= 5.3.3.

**Faker is archived**. Read the reasons behind this decision here:

Table of Contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Formatters](#formatters)
    - [Base](#fakerproviderbase)
    - [Lorem Ipsum Text](#fakerproviderlorem)
    - [Person](#fakerprovideren_usperson)
    - [Address](#fakerprovideren_usaddress)
    - [Phone Number](#fakerprovideren_usphonenumber)
    - [Company](#fakerprovideren_uscompany)
    - [Real Text](#fakerprovideren_ustext)
    - [Date and Time](#fakerproviderdatetime)
    - [Internet](#fakerproviderinternet)
    - [User Agent](#fakerprovideruseragent)
    - [Payment](#fakerproviderpayment)
    - [Color](#fakerprovidercolor)
    - [File](#fakerproviderfile)
    - [Image](#fakerproviderimage)
    - [Uuid](#fakerprovideruuid)
    - [Barcode](#fakerproviderbarcode)
    - [Miscellaneous](#fakerprovidermiscellaneous)
    - [Biased](#fakerproviderbiased)
    - [Html Lorem](#fakerproviderhtmllorem)
- [Modifiers](#modifiers)
- [Localization](#localization)
- [Populating Entities Using an ORM or an ODM](#populating-entities-using-an-orm-or-an-odm)
- [Seeding the Generator](#seeding-the-generator)
- [Faker Internals: Understanding Providers](#faker-internals-understanding-providers)
- [Real Life Usage](#real-life-usage)
- [Language specific formatters](#language-specific-formatters)
- [Third-Party Libraries Extending/Based On Faker](#third-party-libraries-extendingbased-on-faker)
- [License](#license)

Installation
------------

[](#installation)

```
composer require fzaninotto/faker
```

Basic Usage
-----------

[](#basic-usage)

### Autoloading

[](#autoloading)

Faker supports both `PSR-0` as `PSR-4` autoloaders.

```
