PHPackages                             flexic/data-provider - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. flexic/data-provider

ActiveLibrary[Testing &amp; Quality](/categories/testing)

flexic/data-provider
====================

Provides generic data providers for use with phpunit/phpunit.

1.0.0(3y ago)02[9 issues](https://github.com/flexicsystems/data-provider/issues)[1 PRs](https://github.com/flexicsystems/data-provider/pulls)MITPHPPHP ^7.4 || ^8.0

Since Nov 1Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (10)Versions (3)Used By (0)

data-provider
=============

[](#data-provider)

This package provides a simple way to create data providers for your phpunit tests.

It is inspired by the [ergebnis/data-provider](https://github.com/ergebnis/data-provider/) and should extend this with additional data providers.

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

[](#installation)

Run

```
composer require --dev flexic/data-provider
```

Usage
=====

[](#usage)

The `flexic/data-provider` package provides the following providers:

### Id

[](#id)

`Flexic\DataProvider\Types\CuidProvider`

- `long()` provides a CUID in long format.
- `short()` provides a CUID in short format.

`Flexic\DataProvider\Types\SequenceProvider`

- `short()` provides sequence with 10 numbers.
- `long()` provides sequence with 1000 numbers.
- `extraLong()` provides sequence with 100000 numbers.

`Flexic\DataProvider\Types\UuidProvider`

- `v1()` provides UUID in v1 format.
- `v3()` provides UUID in v3 format.
- `v4()` provides UUID in v4 format.
- `v5()` provides UUID in v5 format.
- `v6()` provides UUID in v6 format.

---

### License

[](#license)

This package is licensed using the GNU License.

Please have a look at [LICENSE.md](LICENSE.md).

---

[![Donate](https://camo.githubusercontent.com/b57c445af971e3e99c2d0ccdbf4fa7faa4358ba27fecc8f68459b30289f82eda/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d626c75652e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q98R2QXXMTUF6&source=url)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1294d ago

### Community

Maintainers

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

---

Top Contributors

[![ThemePoint](https://avatars.githubusercontent.com/u/28843201?v=4)](https://github.com/ThemePoint "ThemePoint (236 commits)")[![marcoschwepp](https://avatars.githubusercontent.com/u/60934267?v=4)](https://github.com/marcoschwepp "marcoschwepp (5 commits)")

---

Tags

phpunitdata provider

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/flexic-data-provider/health.svg)

```
[![Health](https://phpackages.com/badges/flexic-data-provider/health.svg)](https://phpackages.com/packages/flexic-data-provider)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78137.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[dg/bypass-finals

Removes final keyword from source code on-the-fly and allows mocking of final methods and classes

56426.3M456](/packages/dg-bypass-finals)[phpspec/prophecy-phpunit

Integrating the Prophecy mocking library in PHPUnit test cases

19254.9M1.4k](/packages/phpspec-prophecy-phpunit)

PHPackages © 2026

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