Registry / utility / symfony-polyfill-php70

symfony-polyfill-php70

JSON →
library1.20.0phppackagistunverified

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

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

Php70
use Symfony\Polyfill\Php70\Php70;

Use PHP 7.0 functions like random_int() on older PHP versions.

use Symfony\Polyfill\Php70\Php70; // The polyfill is automatically loaded via Composer, no manual use needed. // Example: use random_int() which is polyfilled for PHP < 7.0 $random = random_int(1, 100);
Debug
Known issues
breakingThis polyfill is deprecated as PHP 7.0 is end-of-life; use PHP 8.0+ instead.
fix
Upgrade to PHP 8.0 or later and remove this polyfill.
affects: >=1.20.0
Upgrade
Version history
1.20.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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