PHPackages                             null/realisticfaker - 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. null/realisticfaker

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

null/realisticfaker
===================

Creates realistic data based on FAKER-library

2252PHP

Since Jul 27Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

(Realistic)Faker requires PHP &gt;= 7.1.

```
composer require null/realisticfaker
```

### Try Out

[](#try-out)

To start with an example, add a simple php-file with the contents of:

```
require 'vendor/autoload.php';
$faker = RealisticFaker\Factory::create();
echo $faker->gender .' | ' .  $faker->firstName . ' ' .$faker->lastName .' | ' .  $faker->email;
```

### Difference to [faker](https://fakerphp.github.io).

[](#difference-to-faker)

Faker is cool. Like you can

```
$faker = Faker\Factory::create();
echo $faker->firstName . ' | ' .  $faker->jobTitle;
```

which will give you

```
 Jayda | Receptionist and Information Clerk
 Daphney | Woodworker
 Hope | Refractory Materials Repairer

```

and so on

But what isn't cool is if you write

```
$faker = Faker\Factory::create();
echo $faker->firstName . ' ' .$faker->lastName .' | ' .  $faker->email;
```

it will give you

```
 Randy DuBuque | mcorkery@gmail.com
 Emelia Thompson | halvorson.lura@mertz.info

```

That's how faker works (it uses `__get()` magic), but not what we expected. Here RealisticFaker jumps in: Based on fakerphp/faker this library gives you the possibility to create (more) realistic fakeprofiles in which e.g. the email-adress matches the person's name

### Usage

[](#usage)

```
$faker = RealisticFaker\Factory::create();
echo $faker->gender .' | ' .  $faker->firstName . ' ' .$faker->lastName .' | ' .  $faker->email;
```

1st call:

```
 male | Dock Stiedemann | dock.stiedemann@damore.com

```

2nd call:

```
 female | Citlalli Cole | citlalli45@swift.net

```

... and so on

You can also add an identifier - so the "random" person will be the same on each call (what you would probably want for longer tests using personas). So basically the functionality of "seeding" ($faker-&gt;seed($unique)) is included in the constructor.

```
$identifier = "admin";
$faker = RealisticFaker\Factory::create($identifier);
echo $faker->gender .' | ' .  $faker->firstName . ' ' .$faker->lastName .' | ' .  $faker->email;
```

this will always give you:

```
 male | Geovanni Mohr | geovanni.mohr@yahoo.com

```

of course you can use all the features of the original Faker

```
echo $faker->jobTitle
echo $faker->address
echo $faker->bankAccountNumber
$faker->addProvider(...);
```

and so on ...

### Internationalization

[](#internationalization)

You can use all the original translations of faker. Only the constructor is different:

```
$faker = RealisticFaker\Factory::create("admin", "de_DE");
echo $faker->gender .' | ' .  $faker->firstName . ' ' .$faker->lastName .' | ' .  $faker->email;
```

License
-------

[](#license)

RealisticFaker is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/41dab395c3b3ab6eea51991dee480e3886032731dda113dc94d6c7e6919311e1?d=identicon)[Bernhard Strehl](/maintainers/Bernhard%20Strehl)

---

Top Contributors

[![null](https://avatars.githubusercontent.com/u/248747869?v=4)](https://github.com/null "null (8 commits)")

### Embed Badge

![Health badge](/badges/null-realisticfaker/health.svg)

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

PHPackages © 2026

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