PHPackages                             saschati/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. saschati/faker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

saschati/faker
==============

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

v1.9.4(5y ago)0131MITPHPPHP ^5.3.3 || ^7.0 || ^8.0

Since Jul 10Pushed 5y agoCompare

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

READMEChangelogDependencies (2)Versions (19)Used By (1)

Faker
=====

[](#faker)

[![Monthly Downloads](https://camo.githubusercontent.com/59d9f6bc4ec60dcb4ef08a6c058982b0b00183dd2e0a33987842bf386382f39b/68747470733a2f2f706f7365722e707567782e6f72672f667a616e696e6f74746f2f66616b65722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/fzaninotto/faker)[![Continuous Integration](https://github.com/fzaninotto/Faker/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/fzaninotto/Faker/actions)[![codecov](https://camo.githubusercontent.com/45d0c61e8bc2c06819b5d5aabad5924a10c5dcd77ba8c46243c7577a46ff97bd/68747470733a2f2f636f6465636f762e696f2f67682f667a616e696e6f74746f2f46616b65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](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.

```
