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

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

raitocz/faker
=============

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

v1.9.2(5y ago)06MITPHPPHP ^5.3.3 || ^7.0

Since Jul 10Pushed 4y agoCompare

[ Source](https://github.com/raitocz/Faker)[ Packagist](https://packagist.org/packages/raitocz/faker)[ RSS](/packages/raitocz-faker/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (18)Used By (0)

Faker
=====

[](#faker)

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 also not written very well but it works. Its original autor went full rtd into doing huge business out of green hysteria so I made this Fork just to have original, non-biased library for me and others to use.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#faker-is-also-not-written-very-well-but-it-works-its-original-autor-went-full-rtd-into-doing-huge-business-out-of-green-hysteria-so-i-made-this-fork-just-to-have-original-non-biased-library-for-me-and-others-to-use)

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.

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.

```
