automattic/phpunit-select-config
Small utility for PHPUnit projects that helps select or switch the PHPUnit configuration file to use when running tests. Handy for repos with multiple phpunit.xml variants (e.g., local vs CI) and scripts that need consistent config selection.
@group or version-based) without modifying core test files, aligning with feature toggles in the product roadmap.phpunit.xml.dist for main, phpunit.xml.feature-x for experimental features).Adopt if:
phpunit.xml, phpunit-nightly.xml) and wants to switch them programmatically.Look elsewhere if:
phpunit.xml file suffices).--filter or extensions like phpunit-parallel).For Executives: "This package lets us automate test configuration selection—critical for scaling our CI/CD pipeline as we onboard new features (e.g., Feature X, Y). By reducing manual test suite management, we cut build times and free engineers to focus on core product work. It’s a lightweight, zero-maintenance solution backed by Automattic’s Jetpack team, with no licensing costs."
For Engineering:
*"Need to run PHPUnit with dynamic configs (e.g., phpunit.xml.v2 for a new API version)? This CLI tool wraps PHPUnit to auto-select configs by version/flag—no more editing scripts. Works seamlessly with Laravel, WordPress, or any PHP project. Example:
./vendor/bin/phpunit-select-config run --version=v2
Perfect for CI/CD or local dev. Zero dependencies beyond PHPUnit."*
How can I help you explore Laravel packages today?