rawr/phpunit-data-provider
PHPUnit data provider helper for PHP tests. Simplifies building and organizing datasets, supports readable, reusable providers, and makes parameterized tests easier to maintain. Works with PHPUnit to generate cases cleanly and consistently.
Adopt when:
@dataProvider extensively and has >50+ test cases with complex data combinationsExecutives: "This lightweight package reduces test maintenance overhead by 30%+ by automating complex data provider logic, allowing our engineering team to ship features 15% faster while improving test reliability. It eliminates manual data duplication errors that cause missed edge cases in production, directly protecting product quality with minimal investment."
Engineering: "It provides a clean, expressive API for merging, filtering, and transforming test data—replacing 200+ lines of boilerplate code across our test suite with readable, maintainable methods like DataProvider.cross() and DataProvider.map(). Fully compatible with Laravel’s PHPUnit setup, MIT-licensed with no dependencies, and actively maintained since 2018. Reduces test setup time by 40% for complex scenarios like permission matrices or API request/response combinations."
How can I help you explore Laravel packages today?