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

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

schalkt/faker
=============

Random data generator for PHP

v1.1.0(3mo ago)079MITPHPPHP ^8.2CI passing

Since Apr 16Pushed 3mo ago1 watchersCompare

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

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

Random data generator for PHP
=============================

[](#random-data-generator-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/af40d1bc32f3e67ba380e2a64c7ff0e574439308f026c81f4518e53e2c0a8ebd/68747470733a2f2f706f7365722e707567782e6f72672f736368616c6b742f66616b65722f76)](//packagist.org/packages/schalkt/faker)[![Total Downloads](https://camo.githubusercontent.com/7d08f29094b604ac291fecac8819dbbcb404142e2a5060db2f95e38ea2a48e9a/68747470733a2f2f706f7365722e707567782e6f72672f736368616c6b742f66616b65722f646f776e6c6f616473)](//packagist.org/packages/schalkt/faker)[![PHP Version](https://camo.githubusercontent.com/a93dfc2794a2bc902e5601a679a068737089abd2c5ce9c155088734582e9af88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736368616c6b742f6c6f672e737667)](https://packagist.org/packages/schalkt/log)[![License](https://camo.githubusercontent.com/d6935e3f4acb7dcefb8cf0bd54abd27b52f0fa19b8d6f61bf08cdd6700dfe619/68747470733a2f2f706f7365722e707567782e6f72672f736368616c6b742f66616b65722f6c6963656e7365)](//packagist.org/packages/schalkt/faker)[![GitHub issues](https://camo.githubusercontent.com/3e300fdf6e20d71d29f83a68f345fbf16e5c4ca7f91c5775a663f9dde919b5ea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736368616c6b742f66616b65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/schalkt/faker/issues)[![Build](https://github.com/schalkt/faker/actions/workflows/ci.yml/badge.svg)](https://github.com/schalkt/faker/actions/workflows/ci.yml)[![GitHub stars](https://camo.githubusercontent.com/0293049708aad2d2f0b36c8dd9326f662969e46f5cc4e328b923f226393aca9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f736368616c6b742f6c6f672e737667)](https://github.com/schalkt/log/stargazers)

- randomly generated characters, words, sentences
- customizeble vowels and consonants
    - fake Esperanto (Evevete etet sek edeleme)
    - pattern look (DIBI.BOB.BO.DID.IBI.IBID.BID)
- word suffix for funny names (mikozy nadusy hetezy jukesy)

Install
-------

[](#install)

- `composer require schalkt/faker`

Examples
--------

[](#examples)

```
    require_once '/vendor/autoload.php';

    use Schalkt\Faker\Faker;

    $faker = Faker::init();

    $faker->fullname(5, 10); // Sutida Ohisovis
    $faker->firstname(7, 7, Faker::FIRST_VOWEL); // Emubefy
    $faker->lastname(5, 7); // Zusey
    $faker->email(); // punuw.honiw@ajesug.gax
    $faker->password(4, 4, 3, '.'); // W2gg.lsgq.FET0
    $faker->word(5); // focix
    $faker->words(5, ', '); // rabija, yigav, bacera, cunay, okzupu
    $faker->words(2, ' | ', 4, 4, Faker::FIRST_CONSONANT, ['zy', 'sy']); // dodosy | rivozy
    $faker->sentence(5); // Uxibawoz witowarehep effemerogola buinaxepugo nuxehow.
    $faker->text(3, 3, 3); // Icolivotuse rebotuk sulageye. Xaco najud quq.
    $faker->int(1, 1000); // 238
    $faker->float(100, 200, 4); // 175.3874
    $faker->boolean(); // true or false
    $faker->repeat('.', 4, 4, 3, 'oOo'); // ....oOo....oOo....
    $faker->repeat('#', 3, 3, 4, '-'); // ###-###-###-###
    $faker->repeat('124', 1, 5, 4, ' + '); // 2144 + 24444 + 444 + 22141
    $faker->mask('###-###-###-###', 'ABCDEFG'); // AAE-BAF-DDB-AAF
    $faker->mask('##-##-##-##', '01'); // 11-10-01-10
    $faker->pick(['CEO', 'CTO', 'Founder', 'Director'], 3, ', '); // Director, CEO, CTO
    $faker->date(); // 2001-07-21
    $faker->date('2024-01-01', '2024-12-31', 'Y.m.'); // 2024.02.
    $faker->hash('sha256'); // random hash
    $faker->token(32); // api token
    $faker->url(); // https://example.com/random
    $faker->domain(); // example.com
    $faker->city(); // Random City
    $faker->zipcode(4); // 1234
    $faker->country(); // Random Country
    $faker->streetName(); // Random Street Name
    $faker->street(); // Random Street Name 123
    $faker->address(); // Random Street Name 123, 1234 Random City, Random Country
```

### Fake esperente

[](#fake-esperente)

```
    require_once '/vendor/autoload.php';

    use Schalkt\Faker\Faker;

    $faker = Faker::init([
      'vowels' => 'e',
      'consonants' => 'bhdlmnkpstvz',
      'nextChar' => [
        'sameChar' => 0, // percent between 0-100
        'sameType' => 0, // percent between 0-100
        'double' => 0 // percent between 0-100
      ],
    ]);

    $faker->text(20, 3, 10); // Sedev emeze evekem ez denebebekepep...
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance81

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~277 days

Recently: every ~346 days

Total

6

Last Release

101d ago

Major Versions

v0.0.3 → v1.0.02024-04-06

PHP version history (3 changes)v0.0.1PHP &gt;=7.4.0|8.\*

v1.0.0PHP 8.\*

v1.1.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![schalkt](https://avatars.githubusercontent.com/u/4790264?v=4)](https://github.com/schalkt "schalkt (2 commits)")

---

Tags

fakerphprandomphpfakerSimpleeasy

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[fab2s/souuid

Simple Ordered Uuid Generator in PHP

13573.2k1](/packages/fab2s-souuid)[ashleydawson/simple-pagination

Simple, lightweight and universal service that implements pagination on collections of things

18161.2k2](/packages/ashleydawson-simple-pagination)

PHPackages © 2026

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