Registry / utility / symfony-polyfill-php83

symfony-polyfill-php83

JSON →
library1.38.2phppackagistunverified

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

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

Php83
use Symfony\Polyfill\Php83\Php83;

Use the mb_str_pad function from PHP 8.3 on older PHP versions.

<?php\nuse Symfony\\Polyfill\\Php83\\Php83;\n\nPhp83::mb_str_pad('hello', 10, '-', STR_PAD_BOTH);\necho 'Polyfill loaded';
Debug
Known issues
gotchaOnly provides a subset of PHP 8.3 features; not all functions are polyfilled.
fix
Check the list of polyfilled functions in the documentation.
affects: *
Upgrade
Version history
1.38.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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