Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jul 11, 2024 via composer

symfony/polyfill-php72 v1.28.0

Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
Package summary
Share
0
issues
1
license
1
MIT
Package created
9 Jun 2017
Version published
26 Jan 2023
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
symfony/polyfill-php72@v1.28.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of symfony/polyfill-php72 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does symfony/polyfill-php72 do?

Symfony/polyfill-php72 is an invaluable package that backports PHP 7.2 core functions, constants, as well as some mbstring functions to lower PHP versions. This means that it offers the possibility of using these PHP 7.2 features even if the server runs on a previous PHP version. This package also provides support to Windows systems through the sapi_windows_vt100_support function and backports the utf8_encode and utf8_decode functions that were moved to core since PHP 7.2.

How do you use symfony/polyfill-php72?

Utilizing the symfony/polyfill-php72 package is straightforward. Firstly, you will need to install it via composer by running the command composer require symfony/polyfill-php72. Once the installation is complete, you can directly use the PHP 7.2 functions, constants, and the likes in your code as if you were already running PHP 7.2. For instance,

$spl_object_id = spl_object_id($object); // Using the spl_object_id function
$char = mb_chr($codepoint); // Using the mb_chr function
$os_family = PHP_OS_FAMILY; // Using PHP_OS_FAMILY constant 

Note that you do not need to require or import anything into your PHP files, Polyfills are made available globally by Composer's autoloader.

Where are the symfony/polyfill-php72 docs?

Any documentation related to the symfony/polyfill-php72 package can be found in the main Polyfill README file. More comprehensive and updated information regarding the backported PHP 7.2 features, functions, constants, as well as their usage and implementation are available there. Visit the main Polyfill README documentation at https://github.com/symfony/polyfill/blob/main/README.md.