Registry / utility / symfony-polyfill-php82

symfony-polyfill-php82

JSON →
library1.38.1phppackagistunverified

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

composer require symfony/polyfill-php82
INSTALL
IMPORT
SIG · SYMFONY-POLYFILL-P
S
symfony-polyfill-php82
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.

Php82
use Symfony\Polyfill\Php82\Php82;

Automatically provides PHP 8.2 functions on older PHP versions.

use Symfony\Polyfill\Php82\Php82; // No instantiation needed; polyfill is loaded automatically. // Example: use random_byte() which is available in PHP 8.2+ echo bin2hex(random_bytes(16));
Debug
Known issues
gotchaOnly provides a subset of PHP 8.2 features; not all functions are polyfilled.
fix
Check the polyfill documentation for the list of supported functions.
affects: >=1.0.0
Upgrade
Version history
1.38.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
symfony-polyfill-php82 — pip install symfony-polyfill-php82 · libregistry