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

symfony/polyfill-php56 v1.20.0

Symfony polyfill backporting some PHP 5.6+ 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-php56@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-php56 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does symfony/polyfill-php56 do?

Symfony/polyfill-php56 is a nifty PHP package that essentially brings the functionality of some functions, introduced in PHP 5.6, to the platforms that run lower versions of PHP. Specifically, it provides support for functions 'hash_equals' and 'ldap_escape' if they aren't available in your PHP version. 'hash_equals' function compares two strings in a time-insensitive manner and 'ldap_escape' function escapes a string for use in an LDAP filter or DN.

How do you use symfony/polyfill-php56?

Symfony/polyfill-php56 can be conveniently integrated into a PHP project through Composer - a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. To begin using symfony/polyfill-php56, you can add it to your project by running the following composer command:

composer require symfony/polyfill-php56

Now, you can use the 'hash_equals' and 'ldap_escape' functions in your code like they are built-in functions, no extra code is required.

// using hash_equals function
$hash = crypt('mypassword', '$2a$07$usesomesillystringforsalt$');
$isCorrectPassword = hash_equals($hash, crypt('mypassword', $hash));

// using ldap_escape function
$ldapFilter = ldap_escape('(&(objectCategory=person)(objectClass=user)(name=*))', '', LDAP_ESCAPE_FILTER);

Where are the symfony/polyfill-php56 docs?

Complete documentation for the symfony/polyfill-php56 can be found in the main Polyfill README on its GitHub repository at https://github.com/symfony/polyfill/blob/master/README.md. Within the README, you find all necessary usage instructions and also learn more about other functionality the Symfony polyfills provide.