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

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

mrgoodbytes8667/test-common-faker
=================================

Faker providers

v0.7.0(1y ago)078.0k16CC-BY-NC-4.0PHPPHP ^8.2

Since Mar 24Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (36)Used By (16)

test-common-faker
=================

[](#test-common-faker)

[![Packagist Version](https://camo.githubusercontent.com/8172f9bdc743d02a41e0c62d14ea7b801ed22dcc454f3f23301f1a8b8c42f48f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65723f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://packagist.org/packages/mrgoodbytes8667/test-common-faker)[![PHP from Packagist](https://camo.githubusercontent.com/53fac2bfe6f1a6ee4d59327621a834edd5bbe90afa7dbf962107f50e75e4ff36/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65723f6c6f676f3d706870266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://packagist.org/packages/mrgoodbytes8667/test-common-faker)[![Packagist License](https://camo.githubusercontent.com/62d785c97b941e34313607532545529f16c6d075321306c78048863d0bc53a4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65723f6c6f676f3d63726561746976652d636f6d6d6f6e73266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/62d785c97b941e34313607532545529f16c6d075321306c78048863d0bc53a4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65723f6c6f676f3d63726561746976652d636f6d6d6f6e73266c6f676f436f6c6f723d464646267374796c653d666c6174)[![GitHub Release Workflow Status](https://camo.githubusercontent.com/d27339b4f3fb4efda482e33518feac963a1be48e3a09cd3e6de549eda6b67781/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65722f72656c656173652e796d6c3f6c6162656c3d737461626c652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/d27339b4f3fb4efda482e33518feac963a1be48e3a09cd3e6de549eda6b67781/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65722f72656c656173652e796d6c3f6c6162656c3d737461626c652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)[![GitHub Tests Workflow Status](https://camo.githubusercontent.com/00b9da17e0fbebd2dd6629927be2dcbe7e322704e977ed7f417c736e2e174839/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65722f72756e2d74657374732e796d6c3f6c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/00b9da17e0fbebd2dd6629927be2dcbe7e322704e977ed7f417c736e2e174839/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65722f72756e2d74657374732e796d6c3f6c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)[![GitHub Coverage Workflow Status](https://camo.githubusercontent.com/c6b3a17d2b26cf93823f2468cb2f0fe7fb96da57de31a8edbd9014b904a0fffe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65722f636f64652d636f7665726167652e796d6c3f6c6162656c3d636f7665726167652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://camo.githubusercontent.com/c6b3a17d2b26cf93823f2468cb2f0fe7fb96da57de31a8edbd9014b904a0fffe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65722f636f64652d636f7665726167652e796d6c3f6c6162656c3d636f7665726167652532306275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d464646267374796c653d666c6174)[![codecov](https://camo.githubusercontent.com/e6a2347f98fc198b059be361319fbb28964bda033b9230d83200776590da48b5/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6d72676f6f646279746573383636372f746573742d636f6d6d6f6e2d66616b65722f302e373f6c6f676f3d636f6465636f76266c6f676f436f6c6f723d464646267374796c653d666c6174)](https://codecov.io/gh/mrgoodbytes8667/test-common-faker)
Provides a [Faker](https://fakerphp.github.io/) test helper

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/test-common-faker --dev
```

Usage
-----

[](#usage)

```
class SampleTest extends KernelTestCase
{
    use \Bytes\Common\Faker\TestFakerTrait;

    public function testSomething()
    {
        $number = $this->faker->numberBetween();
        self::assertLessThan(0, $number);
    }
}
```

Note: @var is helpful for IDE autocompletion

### With PHPUnit

[](#with-phpunit)

If you are using `$faker` in every test, you can use `TestFakerTrait` to setup/teardown `$this->faker` before/after each test. Declare `$this->providers` as an array of additional providers beyond `MiscProvider` to auto-add them when using this trait.

Upgrade Notes
-------------

[](#upgrade-notes)

### From &lt;0.7\* to 0.7.\*

[](#from-07-to-07)

- PHPUnit 9.\* support dropped due to annotations to attributes swap. There may be issues with 0.7.\*+ if used in conjunction with PHPUnit 9.\* Note: [Rector can automatically change tests to use the newer annotations](https://getrector.com/blog/how-to-upgrade-to-phpunit-10-in-diffs#:~:text=the%20%40annotations%20are%20flipped%20to%20%23%5Battributes%5D)

License
-------

[](#license)

[![License](https://camo.githubusercontent.com/8e920748a0fd13799976f355f8ffe92521065c2d43d4d9f86019d0a00e004d22/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d6e632f342e302f38387833312e706e67)](https://camo.githubusercontent.com/8e920748a0fd13799976f355f8ffe92521065c2d43d4d9f86019d0a00e004d22/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d6e632f342e302f38387833312e706e67)
Test Common Faker 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

40

—

FairBetter than 88% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity66

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

Recently: every ~28 days

Total

35

Last Release

543d ago

PHP version history (3 changes)v0.0.1PHP ^7.4 | ^8.0

v0.3.7PHP ^8.1

v0.7.0PHP ^8.2

### 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 (32 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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