Registry / utility / symfony-polyfill-php81

symfony-polyfill-php81

JSON →
library1.38.1phppackagistunverified

Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions.

composer require symfony/polyfill-php81
INSTALL
IMPORT
SIG · SYMFONY-POLYFILL-P
S
symfony-polyfill-php81
utilityphpv1.38.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Php81
use Symfony\Polyfill\Php81\Php81;

Use PHP 8.1 functions like array_is_list on older PHP versions.

use Symfony\Polyfill\Php81\Php81; // Example: use array_is_list() which is polyfilled if (Php81::array_is_list([1, 2, 3])) { echo 'List'; }
Debug
Known issues
gotchaPolyfills only cover a subset of PHP 8.1 features; not all new functions or classes are included.
fix
Check the package documentation for the exact list of polyfilled features.
affects: >=1.0.0
Upgrade
Version history
1.38.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
symfony-polyfill-php81 — pip install symfony-polyfill-php81 · libregistry