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 May 8, 2024 via composer

symfony/polyfill-php55 v1.20.0

Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions
Package summary
Share
0
issues
1
license
1
MIT
Package created
25 Oct 2015
Version published
23 Oct 2020
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-php55@v1.20.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-php55 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does symfony/polyfill-php55 do?

The Symfony Polyfill PHP55 is a robust tool designed to backport some PHP 5.5+ features to lower PHP versions. It essentially provides functions that are unavailable in releases prior to PHP 5.5. A few notable functions include boolval, json_last_error_msg, array_column, hash_pbkdf2, and password_* functions. By utilizing Symfony Polyfill PHP55, developers can leverage advanced PHP 5.5+ features on lower PHP versions, thus ensuring their web applications remain compatible and functional, even with older PHP environments.

How do you use symfony/polyfill-php55?

Usage of the Symfony Polyfill PHP55 is fairly simple and straightforward. Once you have installed the package via Composer, you can use the Polyfill functions as you would any other PHP function. Here are a few examples:

// Using boolval function
$testVar = 'some value';
$boolean = boolval($testVar);

// Using json_last_error_msg function
$json = 'invalid json string';
$jsonDecode = json_decode($json);
if (json_last_error()) {
    echo json_last_error_msg();
}

// Using array_column function
$records = array(
   array(
       'id' => 2135,
       'first_name' => 'John',
       'last_name' => 'Doe',
   ),
   array(
       'id' => 3245,
       'first_name' => 'Sally',
       'last_name' => 'Smith',
   )
);
$firstNames = array_column($records, 'first_name');

Where are the symfony/polyfill-php55 docs?

The Symfony Polyfill PHP55 documentation can be found on the main Polyfill README on Symfony's GitHub repository. It provides a comprehensive guide on how the Polyfill works and how to use the various backported functions. For more specific details and usage guides for individual functions, you can visit their respective official PHP documentation links provided in the README. Visit the main Polyfill README on GitHub for more information.