Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 10, 2024 via composer

symfony/polyfill-php80 v1.28.0

Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
Package summary
Share
0
issues
1
license
1
MIT
Package created
28 Jan 2020
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-php80@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-php80 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does symfony/polyfill-php80 do?

The Symfony polyfill-php80 is a crucial package that provides features to lower PHP versions that were initially added to PHP 8.0 core. This backporting ensures the seamless operation of these features in previous versions. The features include the Stringable interface, fdiv, the ValueError and UnhandledMatchError classes, FILTER_VALIDATE_BOOL constant, get_debug_type, PhpToken class, preg_last_error_msg, among others such as str_contains, str_starts_with, str_ends_with, and get_resource_id.

How do you use symfony/polyfill-php80?

Utilizing the symfony/polyfill-php80 is remarkably uncomplicated; first, install the package using composer. Input this command into your terminal:

composer require symfony/polyfill-php80

After successful installation, you can now access PHP 8.0 features in your lower PHP version. For instance:

if (str_contains('example', 'ex')) {
    echo "The string 'ex' was found in the string 'example'!";
}

This example uses the str_contains check, a feature added in PHP 8.0.

Where are the symfony/polyfill-php80 docs?

Symfony/polyfill-php80 does not have standalone documentation. However, you can find more valuable information in the main Polyfill README on GitHub. Useful features of PHP 8.0 and their descriptions can be found in this comprehensive document which aids in understanding this particular polyfill component.