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

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

alymosul/faker
==============

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

1.11.0(5y ago)02.6k↓25%MITPHPPHP ^7.1 || ^8.0

Since Oct 27Pushed 5y agoCompare

[ Source](https://github.com/Alymosul/Faker)[ Packagist](https://packagist.org/packages/alymosul/faker)[ RSS](/packages/alymosul-faker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (7)Used By (0)

Faker
=====

[](#faker)

[![Monthly Downloads](https://camo.githubusercontent.com/2f449ffecedfb6d13376b46ec92d3b0c4461dce6c63f2175b089594350482889/68747470733a2f2f706f7365722e707567782e6f72672f66616b65727068702f66616b65722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/fakerphp/faker)[![Continuous Integration](https://github.com/FakerPHP/Faker/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/FakerPHP/Faker/actions)[![StyleCI](https://camo.githubusercontent.com/817ea6a26ea29e320505f04a92caa55a3438f91802ea8d77377b2c194fbca63b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3330373635383836302f736869656c643f6272616e63683d6d61696e267374796c653d706c6173746963)](https://github.styleci.io/repos/307658860?branch=main)

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;= 7.1.

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 fakerphp/faker
```

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

[](#basic-usage)

### Autoloading

[](#autoloading)

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

```
