PHPackages                             phoenixrvd/phpunit-data-provider-yaml - 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. phoenixrvd/phpunit-data-provider-yaml

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

phoenixrvd/phpunit-data-provider-yaml
=====================================

Allow to use YAML, JSON or PHP files to storing a data for PHP-Unit-DataProviders

1.1.1(6y ago)0541mitPHPPHP ^7.3|^7.2|^7.1|^5.6CI failing

Since Aug 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/phoenixrvd/phpunit-data-provider-yaml)[ Packagist](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)[ RSS](/packages/phoenixrvd-phpunit-data-provider-yaml/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

PHPUnit - data providers
========================

[](#phpunit---data-providers)

[![Minimum PHP Version](https://camo.githubusercontent.com/824c5c4ccb56537db3b3b53bb43d7b8edc6286f3b3d1705525e0821dfd22d27e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e737667)](https://php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/e1081bd5f80270e74f5dd271daf4e12ef5f12d3d37a7450efdf85ffb61513087/68747470733a2f2f706f7365722e707567782e6f72672f70686f656e69787276642f706870756e69742d646174612d70726f76696465722d79616d6c2f762f737461626c652e737667)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)[![composer.lock](https://camo.githubusercontent.com/54672e30f7959ce0474aeb6382cb966bfd5a6ebac6447d635d3e2f3b51a6c60a/68747470733a2f2f706f7365722e707567782e6f72672f70686f656e69787276642f706870756e69742d646174612d70726f76696465722d79616d6c2f636f6d706f7365726c6f636b)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)[![License](https://camo.githubusercontent.com/ad48457d8017bfba26f512feae9b6204f60de34635abaca5856411d5d28bfe87/68747470733a2f2f706f7365722e707567782e6f72672f70686f656e69787276642f706870756e69742d646174612d70726f76696465722d79616d6c2f6c6963656e7365)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)

[![Build Status](https://camo.githubusercontent.com/aba98fce4066a81cdc3758662f4c9ffcb75821db5c6c903ae97e1f719346545c/68747470733a2f2f7472617669732d63692e6f72672f70686f656e69787276642f706870756e69742d646174612d70726f76696465722d79616d6c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/phoenixrvd/phpunit-data-provider-yaml)[![Code Climate](https://camo.githubusercontent.com/8dd2b72bb5e7f20af2234a2d7e369ea5226b0832f6bf002892942f9e6f45f01d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f70686f656e69787276642f706870756e69742d646174612d70726f76696465722d79616d6c2e706e67)](https://codeclimate.com/github/phoenixrvd/phpunit-data-provider-yaml)[![StyleCI](https://camo.githubusercontent.com/260a869d828dafc00afb52bb3e91728c7fae118140e60de257c1cfedc1d823e3/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130323839393335392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/102899359)[![Test Coverage](https://camo.githubusercontent.com/f3d7e6d360164687ea72e7537e21e16fe399513710067b0c8ff09ba77c094729/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f70686f656e69787276642f706870756e69742d646174612d70726f76696465722d79616d6c2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/phoenixrvd/phpunit-data-provider-yaml/coverage)[![Latest Unstable Version](https://camo.githubusercontent.com/7061e0034c8617178bc6ff1f6d989506b1cfb462c8be5f5056795e520cfb9baf/68747470733a2f2f706f7365722e707567782e6f72672f70686f656e69787276642f706870756e69742d646174612d70726f76696465722d79616d6c2f762f756e737461626c652e737667)](https://packagist.org/packages/phoenixrvd/phpunit-data-provider-yaml)

- [Installation](#installation)
- [How to use](#how-to-use)
- [Testing](#testing)
- [Copyright and license](#copyright-and-license)

Magic helper to autoload YAML, JSON or PHP files for [data providers](https://phpunit.readthedocs.io/en/7.1/writing-tests-for-phpunit.html#data-providers) in [PHPUnit](https://phpunit.de/index.html).

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

[](#installation)

Install the latest version with

```
composer require --dev phoenixrvd/phpunit-data-provider-yaml
```

How to use
----------

[](#how-to-use)

See [Example](./tests/ExampleTest.php) implementation.

Testing
-------

[](#testing)

```
composer phpunit_data_provider_yaml:test
```

Copyright and license
---------------------

[](#copyright-and-license)

Code released under the [MIT License](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

2257d ago

PHP version history (2 changes)1.0.0PHP ^7.1|^7.2|^5.6

1.1.1PHP ^7.3|^7.2|^7.1|^5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3441385?v=4)[PhoenixRVD](/maintainers/PhoenixRVD)[@phoenixrvd](https://github.com/phoenixrvd)

---

Top Contributors

[![phoenixrvd](https://avatars.githubusercontent.com/u/3441385?v=4)](https://github.com/phoenixrvd "phoenixrvd (14 commits)")

---

Tags

clean-codecomposer-packagemit-licensephpphp-libraryphp56php71php72php73phpunitphpunit-extension

### Embed Badge

![Health badge](/badges/phoenixrvd-phpunit-data-provider-yaml/health.svg)

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

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[codeception/codeception

All-in-one PHP Testing Framework

4.9k86.2M2.9k](/packages/codeception-codeception)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

31252.7k5](/packages/webmozarts-strict-phpunit)[lastzero/test-tools

Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit

2244.3k13](/packages/lastzero-test-tools)

PHPackages © 2026

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