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

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

bobthecow/faker
===============

The easiest way to generate fake data in PHP

18687.4k↓21.9%26[2 PRs](https://github.com/bobthecow/Faker/pulls)4PHP

Since Jan 14Pushed 3y ago5 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (4)

Faker
=====

[](#faker)

[Faker](http://github.com/bobthecow/Faker) is a PHP port of [a Ruby port](http://faker.rubyforge.org/) of [`Data::Faker` from Perl](http://search.cpan.org/~jasonk/Data-Faker-0.07/lib/Data/Faker.pm).

It's a convoluted path, but you're the beneficiary of a simple way to generate fake data for your PHP 5.3 project.

### INSTALLATION

[](#installation)

```
$ composer require bobthecow/faker:dev-master
```

Usage is fairly straightforward:
--------------------------------

[](#usage-is-fairly-straightforward)

```
echo \Faker\Name::name();    // "Leeroy Jenkins"
```

There are a few more to choose from:
------------------------------------

[](#there-are-a-few-more-to-choose-from)

```
\Faker\Address::address();
\Faker\Address::streetName();
\Faker\Address::streetAddress($includeSecondary = false);
\Faker\Address::city();
\Faker\Address::state();
\Faker\Address::stateAbbr();
\Faker\Address::zipCode();
\Faker\Address::zip();
\Faker\Address::postcode();
\Faker\Address::cityStateZip();
\Faker\Address::country();

\Faker\Company::name();
\Faker\Company::suffix();
\Faker\Company::catchPhrase();
\Faker\Company::bs();

\Faker\DateTime::timestamp();
\Faker\DateTime::date($format = null);
\Faker\DateTime::dateFormat();
\Faker\DateTime::time($format = null);
\Faker\DateTime::timeFormat();
\Faker\DateTime::dateTime($format = null);
\Faker\DateTime::dateTimeFormat();
\Faker\DateTime::month();
\Faker\DateTime::monthAbbr();
\Faker\DateTime::weekday();
\Faker\DateTime::weekdayAbbr();

\Faker\Geo::point();
\Faker\Geo::latitude();
\Faker\Geo::longitude();
\Faker\Geo::pointDMS();
\Faker\Geo::latitudeDMS();
\Faker\Geo::longitudeDMS();

\Faker\Geo\BuenosAires::point();
\Faker\Geo\Chicago::latitude();
\Faker\Geo\Jakarta::longitude();
\Faker\Geo\London::pointDMS();
\Faker\Geo\LosAngeles::latitudeDMS();
\Faker\Geo\MexicoCity::longitudeDMS();

\Faker\Geo::point(\Faker\Geo\NewDelhi::bounds());
\Faker\Geo::latitude(\Faker\Geo\NewYork::bounds());
\Faker\Geo::longitude(\Faker\Geo\Paris::bounds());
\Faker\Geo::pointDMS(\Faker\Geo\Portland::bounds());
\Faker\Geo::latitudeDMS(\Faker\Geo\SanFrancisco::bounds());
\Faker\Geo::longitudeDMS(\Faker\Geo\SaoPaulo::bounds());

\Faker\Geo::point([[$swLat, $swLng], [$neLat, $neLng]]);
\Faker\Geo::latitude([$latMin, $latMax]);
\Faker\Geo::longitude([$lngMin, $lngMax]);
\Faker\Geo::pointDMS([[$swLat, $swLng], [$neLat, $neLng]]);
\Faker\Geo::latitudeDMS([$latMin, $latMax]);
\Faker\Geo::longitudeDMS([$lngMin, $lngMax]);

\Faker\Geo\BuenosAires::point();
\Faker\Geo\Chicago::point();
\Faker\Geo\Jakarta::point();
\Faker\Geo\London::point();
\Faker\Geo\LosAngeles::point();
\Faker\Geo\MexicoCity::point();
\Faker\Geo\NewDelhi::point();
\Faker\Geo\NewYork::point();
\Faker\Geo\Paris::point();
\Faker\Geo\Portland::point();
\Faker\Geo\SanFrancisco::point();
\Faker\Geo\SaoPaulo::point();
\Faker\Geo\Seoul::point();
\Faker\Geo\Tokyo::point();
\Faker\Geo\UnitedStates::point();

\Faker\Internet::email($name = null);
\Faker\Internet::freeEmail($name = null);
\Faker\Internet::safeEmail($name = null);
\Faker\Internet::userName($name = null);
\Faker\Internet::domainName();
\Faker\Internet::safeDomainName();
\Faker\Internet::domainWord();
\Faker\Internet::domainSuffix();
\Faker\Internet::ipv4Address();
\Faker\Internet::slug($str = null, $glue = array('.', '-', '_'));

\Faker\Lorem::word();
\Faker\Lorem::words($num = 3);
\Faker\Lorem::sentence($wordCount = 4);
\Faker\Lorem::sentences($sentenceCount = 3);
\Faker\Lorem::paragraph($sentenceCount = 3);
\Faker\Lorem::paragraphs($paragraphCount = 3);

\Faker\Name::name();
\Faker\Name::firstName();
\Faker\Name::lastName();
\Faker\Name::prefix();
\Faker\Name::suffix();

\Faker\PhoneNumber::phoneNumber();
\Faker\PhoneNumber::safePhoneNumber();
```

Yeah,
-----

[](#yeah)

... it's an entire library made up of static methods. Just to bug [Bulat](http://github.com/avalanche123) :)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c38e57a7804048586f181f2cbc8f0b3d7ebe71056c98ff571020a76b159afd55?d=identicon)[bobthecow](/maintainers/bobthecow)

---

Top Contributors

[![bobthecow](https://avatars.githubusercontent.com/u/53660?v=4)](https://github.com/bobthecow "bobthecow (18 commits)")[![jjbohn](https://avatars.githubusercontent.com/u/401301?v=4)](https://github.com/jjbohn "jjbohn (2 commits)")[![calraiden](https://avatars.githubusercontent.com/u/1984844?v=4)](https://github.com/calraiden "calraiden (1 commits)")[![cranberyxl](https://avatars.githubusercontent.com/u/63764?v=4)](https://github.com/cranberyxl "cranberyxl (1 commits)")[![kriswallsmith](https://avatars.githubusercontent.com/u/33886?v=4)](https://github.com/kriswallsmith "kriswallsmith (1 commits)")

### Embed Badge

![Health badge](/badges/bobthecow-faker/health.svg)

```
[![Health](https://phpackages.com/badges/bobthecow-faker/health.svg)](https://phpackages.com/packages/bobthecow-faker)
```

###  Alternatives

[contributte/forms-multiplier

Multiplier for nette forms

281.4M3](/packages/contributte-forms-multiplier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
