Registry / utility / symfony-polyfill-php71

symfony-polyfill-php71

JSON →
library1.20.0phppackagistunverified

Symfony polyfill backporting some PHP 7.1+ features to lower PHP versions

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

Php71
use Symfony\Polyfill\Php71\Php71;

Demonstrates using the polyfill to access PHP 7.1 functions on older PHP versions

<?php require_once 'vendor/autoload.php'; use Symfony\Polyfill\Php71\Php71; // Example: using the polyfilled is_iterable function $result = Php71::is_iterable([1, 2, 3]); var_dump($result); // bool(true)
Debug
Known issues
breakingThis package is deprecated as PHP 7.1 is end-of-life; consider upgrading to PHP 8.x and using native functions.
fix
Upgrade to PHP 8.x and remove this polyfill dependency.
affects: >=1.0.0
Upgrade
Version history
1.20.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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