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

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

mrgoodbytes8667/faker-providers
===============================

A Faker Factory, Generator, and some providers

v0.6.3(1w ago)02.7k1CC-BY-NC-4.0PHPPHP ^8.1CI failing

Since Aug 2Pushed 1w ago1 watchersCompare

[ Source](https://github.com/mrgoodbytes8667/faker-providers)[ Packagist](https://packagist.org/packages/mrgoodbytes8667/faker-providers)[ RSS](/packages/mrgoodbytes8667-faker-providers/feed)WikiDiscussions 0.6 Synced today

READMEChangelog (2)Dependencies (16)Versions (5)Used By (1)

faker-providers
===============

[](#faker-providers)

[![Packagist Version](https://camo.githubusercontent.com/4639653ae3b492d1f02a9760569106454272d975974820ebb4928e2cea67b251/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72676f6f646279746573383636372f66616b65722d70726f7669646572733f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://packagist.org/packages/mrgoodbytes8667/faker-providers)[![PHP from Packagist](https://camo.githubusercontent.com/d58b82848e229410a863d2e07801794e37ff8d3385288e2e2e549414ca0ac5c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72676f6f646279746573383636372f66616b65722d70726f7669646572733f6c6f676f3d706870266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://packagist.org/packages/mrgoodbytes8667/faker-providers)[![Symfony Versions Supported](https://camo.githubusercontent.com/bea352402746038e66230e79fde68675f4d9cde154da3f34c636a0f9e2975250/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c6425324673796d666f6e792532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/bea352402746038e66230e79fde68675f4d9cde154da3f34c636a0f9e2975250/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c6425324673796d666f6e792532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)[![Symfony LTS Version](https://camo.githubusercontent.com/55273fc3473f94b92ef4510862981b6f9a306d76cfc4e74f175f03a8fea99054/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c642532466c74732532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/55273fc3473f94b92ef4510862981b6f9a306d76cfc4e74f175f03a8fea99054/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c642532466c74732532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)[![Symfony Stable Version](https://camo.githubusercontent.com/e06c84889c38f3f31d9a41e15fd988e82c7d4432717be244ba3204aa5dff6e39/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c64253246737461626c652532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/e06c84889c38f3f31d9a41e15fd988e82c7d4432717be244ba3204aa5dff6e39/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c64253246737461626c652532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)[![Symfony Dev Version](https://camo.githubusercontent.com/d9ddaebf7d5525d59c9f6626359b26c77c2df24f2bd5dfde1ea915a2a3dafdcd/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c642532466465762532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/d9ddaebf7d5525d59c9f6626359b26c77c2df24f2bd5dfde1ea915a2a3dafdcd/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246736869656c64732e6d72676f6f6462797465732e646576253246736869656c642532466465762532462532353545352e322532353230253235374325323532302532353545362e302532353230253235374325323532302532353545372e30266c6f676f436f6c6f723d464646267374796c653d666c6174)[![Packagist License](https://camo.githubusercontent.com/b190fb9b1485798a1e71518c39ca55f53ca30414348adeb02eecbe71081ad039/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72676f6f646279746573383636372f66616b65722d70726f7669646572733f6c6f676f3d63726561746976652d636f6d6d6f6e73266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/b190fb9b1485798a1e71518c39ca55f53ca30414348adeb02eecbe71081ad039/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72676f6f646279746573383636372f66616b65722d70726f7669646572733f6c6f676f3d63726561746976652d636f6d6d6f6e73266c6f676f436f6c6f723d464646267374796c653d666c6174)[![GitHub Release Workflow Status](https://camo.githubusercontent.com/90623a6ac191c818a7140fd3c26b1d731c1c890af2112e1b605dadff5f68d696/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f66616b65722d70726f7669646572732f72656c656173652e796d6c3f6c6162656c3d737461626c652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/90623a6ac191c818a7140fd3c26b1d731c1c890af2112e1b605dadff5f68d696/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f66616b65722d70726f7669646572732f72656c656173652e796d6c3f6c6162656c3d737461626c652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)[![GitHub Tests Workflow Status](https://camo.githubusercontent.com/ccff13fd55720efcd99a13860d50a0ee80fa6ecfa6364515dd6d2ff711acd4dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f66616b65722d70726f7669646572732f72756e2d74657374732e796d6c3f6c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/ccff13fd55720efcd99a13860d50a0ee80fa6ecfa6364515dd6d2ff711acd4dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f66616b65722d70726f7669646572732f72756e2d74657374732e796d6c3f6c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)[![GitHub Coverage Workflow Status](https://camo.githubusercontent.com/f04d52f93fe9d0f4cac0ad0a9c23f2d81036f9ca591a6abd56056b1e0d6365dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f66616b65722d70726f7669646572732f636f64652d636f7665726167652e796d6c3f6c6162656c3d636f7665726167652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/f04d52f93fe9d0f4cac0ad0a9c23f2d81036f9ca591a6abd56056b1e0d6365dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f66616b65722d70726f7669646572732f636f64652d636f7665726167652e796d6c3f6c6162656c3d636f7665726167652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)[![codecov](https://camo.githubusercontent.com/f755258d2c3df2c7f5e1069cf0c089912f9fdea7fb970856b336d0fcad9fb6cb/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6d72676f6f646279746573383636372f66616b65722d70726f7669646572732f302e353f6c6f676f3d636f6465636f76266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://codecov.io/gh/mrgoodbytes8667/faker-providers)
A [Faker](https://fakerphp.github.io/) Factory, Generator, and some providers

Installation
------------

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Open a command console, enter your project directory and execute:

```
$ composer require mrgoodbytes8667/faker-providers
```

Usage
-----

[](#usage)

```
use Bytes\Common\Faker\Factory;

$faker = Factory::create();

$faker->camelWords();
$faker->snakeWords();
$faker->oneOrMoreOf(['some', 'iterable', 'object']);
$faker->rangeBetween(4, 1, 2);
$faker->randomAlphanumericString();
$faker->paragraphsMinimumChars();
```

The included replacement Factory removes the now deprecated Faker image provider and replaces it with the [mmo/faker-images](https://github.com/morawskim/faker-images) provider, and adds other included providers by default. It returns an overloaded Generator for code completion purposes as well.

### With PHPUnit

[](#with-phpunit)

See [test-common-faker](https://github.com/mrgoodbytes8667/test-common-faker) for easy PHPUnit test integration

### With Zenstruck/Foundry

[](#with-zenstruckfoundry)

Add the following to `Kernel.php` to replace the default Faker Generator with this one, adding in these providers

```
    public function process(ContainerBuilder $container): void
    {
        $container->getDefinition('.zenstruck_foundry.faker')->setFactory([\Bytes\Common\Faker\Factory::class, 'create']);
    }
```

License
-------

[](#license)

[![License](https://camo.githubusercontent.com/8e920748a0fd13799976f355f8ffe92521065c2d43d4d9f86019d0a00e004d22/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d6e632f342e302f38387833312e706e67)](https://camo.githubusercontent.com/8e920748a0fd13799976f355f8ffe92521065c2d43d4d9f86019d0a00e004d22/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d6e632f342e302f38387833312e706e67)
Faker Providers by [MrGoodBytes](https://mrgoodbytes.dev) is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](http://creativecommons.org/licenses/by-nc/4.0/).
Based on a work at .

###  Health Score

44

↑

FairBetter than 90% of packages

Maintenance98

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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 ~172 days

Total

5

Last Release

11d ago

### Community

Maintainers

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

---

Top Contributors

[![mrgoodbytes8667](https://avatars.githubusercontent.com/u/72107446?v=4)](https://github.com/mrgoodbytes8667 "mrgoodbytes8667 (12 commits)")

###  Code Quality

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.6k](/packages/symfony-dependency-injection)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)

PHPackages © 2026

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