phpunitgoodpractices/polyfill
Polyfill library for PHPUnit best practices, providing compatibility helpers and shims to keep test suites consistent across PHPUnit versions. Useful for package maintainers aiming for cleaner, more portable tests without forcing specific PHPUnit upgrades.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| yoast/phpunit-polyfills | 0.88 | Polyfills to write PHPUnit tests compatible across versions. Provides traits, test cases, and utilities that bridge API changes so one test suite can run on PHPUnit 7.5–9 and 11–12. Requires PHP 7.1+. | 186 | 185 | 13 | 2M | 4 | 11.5 | 55.7 | BSD-3-Clause | 11 months ago | |
| symfony/polyfill-php80 | 0.84 | Backport of PHP 8.0 core features for older runtimes. Adds Stringable, fdiv, ValueError/UnhandledMatchError, FILTER_VALIDATE_BOOL, get_debug_type, PhpToken, preg_last_error_msg, str_contains/starts_with/ends_with, and get_resource_id. | 1,726 | 1,738 | 26 | 16M | 0 | 25.2 | 62.1 | MIT | 3 months ago | |
| symfony/polyfill-php72 | 0.84 | Symfony Polyfill for PHP 7.2: backports core and mbstring functions like spl_object_id, stream_isatty, mb_ord/mb_chr/mb_scrub, utf8_encode/decode, plus PHP 7.2 constants (PHP_FLOAT_*, PHP_OS_FAMILY) and Windows VT100 support. | 4,732 | 4,743 | 6 | 4M | 0 | 23.8 | 40.7 | MIT | — | |
| symfony/polyfill-php81 | 0.84 | Symfony Polyfill for PHP 8.1 features on older runtimes. Adds array_is_list, enum_exists, MYSQLI_REFRESH_REPLICA, ReturnTypeWillChange, and CURLStringFile (PHP 7.4+). Drop-in Composer dependency for wider compatibility. | 884 | 886 | 7 | 8M | 0 | 23.2 | 63.0 | MIT | 1 month ago | |
| symfony/polyfill-php86 | 0.83 | Symfony Polyfill Php86 brings upcoming PHP 8.6 features to older runtimes. Includes the clamp() function, ARRAY_FILTER_USE_VALUE constant, and the SortDirection enum. Ideal for forward-compatible code while staying on PHP 8.x. | 6 | 6 | 0 | 5M | 0 | 19.1 | 63.8 | MIT | 1 month ago | |
| symfony/polyfill-php73 | 0.82 | Symfony Polyfill for PHP 7.3: provides fallback implementations of core features for older PHP versions, including array_key_first/last, hrtime, is_countable, and JsonException, ensuring consistent behavior across environments. | 2,372 | 2,387 | 6 | 6M | 0 | 27.8 | 53.3 | MIT | 3 months ago |
How can I help you explore Laravel packages today?