PHPackages                             johnykvsky/dummyproviders - 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. johnykvsky/dummyproviders

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

johnykvsky/dummyproviders
=========================

Sample language providers for DummyGenerator

v0.2.0(2mo ago)01MITPHPPHP ^8.3CI passing

Since Aug 14Pushed 2mo agoCompare

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

READMEChangelog (4)Dependencies (6)Versions (9)Used By (0)

DummyProviders
==============

[](#dummyproviders)

[![logo](logo_d6.png)](logo_d6.png)

This repository contains language providers for **DummyGenerator**:

- en\_US
- en\_GB
- pl\_PL

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

[](#installation)

```
composer require johnykvsky/dummyproviders --dev
```

Usage
-----

[](#usage)

For full info about DummyGenerator check go [here](https://github.com/johnykvsky/dummygenerator)

Easiest way to add language providers is to go with `DummyGenerator` factory method:

```
$generator = DummyGenerator::create()->withProvider(new EnUsDefinitionPack());
```

But it can be also done with explicit container usage:

```
$container = DiContainerFactory::all()->withDefinitions((new EnUsDefinitionPack())->all());
$generator = new DummyGenerator($container);
echo $generator->state(); // i.e. "Arkansas"
echo $generator->realText(); // it will give you part of ./resources/en_US.txt
```

But provider can be changed in a shorter way, via DummyGenerator itself:

```
$generator = DummyGenerator::create()->withProvider(new EnUsDefinitionPack());
echo $generator->state(); // i.e. "Arkansas"
$generator = $generator->withProvider(new PlPlDefinitionPack());
echo $generator->licensePlate(); // i.e. "CIN O6UT"
```

Remember: generator is immutable.

Text extension
--------------

[](#text-extension)

Providers add one more extension: `Text`. It has only one method, `realText()` that allows you to generate text from passed string or given txt file.

Text extension is a bit different for one reason - it uses external `.txt` file as source to large text. By default, it's in `resources/en_US.txt` but you can either:

- pass text to `Text` constructor (i.e. `$text = new Text(file_get_contents('my_file.txt'));`)
- extend `Text` class and use different location in `$defaultText` property

Regexify
--------

[](#regexify)

There is `Regexify` class in `src` folder, for compatibility - it's still being used in some providers

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance85

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~64 days

Total

4

Last Release

76d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e6d1e51d2c4b4cdc06e4021ece09aad572705b360b45a8d51f90e8a1dc462ac?d=identicon)[johnykvsky](/maintainers/johnykvsky)

---

Top Contributors

[![johnykvsky](https://avatars.githubusercontent.com/u/33696337?v=4)](https://github.com/johnykvsky "johnykvsky (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

languagefakergeneratorproviderDummyFake data

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/johnykvsky-dummyproviders/health.svg)

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

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

3.9k358.5M3.5k](/packages/fakerphp-faker)[phpoption/phpoption

Option Type for PHP

2.7k541.2M159](/packages/phpoption-phpoption)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[simplesoftwareio/simple-qrcode

Simple QrCode is a QR code generator made for Laravel.

2.9k27.6M92](/packages/simplesoftwareio-simple-qrcode)[mmo/faker-images

Different images provider for Faker

59370.3k6](/packages/mmo-faker-images)[bluemmb/faker-picsum-photos-provider

picsum.photos provider for Faker

31225.7k1](/packages/bluemmb-faker-picsum-photos-provider)

PHPackages © 2026

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