symfony/polyfill-php83
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
symfony/polyfill-php80 | v1.29.0 | - | MIT | prod |
Symfony's polyfill-php83 package is designed to bring the features of PHP 8.3+ to prior PHP versions. It enables developers to use certain PHP 8.3 functionalities on lower PHP versions, expanding compatibility and developing efficiency. This includes features such as json_validate
, Override
, mb_str_pad
, ldap_exop_sync
, ldap_connect_wallet
, stream_context_set_options
, and specific Date*Exception/Error classes
. The benefits of using symfony/polyfill-php83 include streamlined PHP development and enhanced cross-version compatibility.
To make use of the symfony/polyfill-php83, you would first need to add the package to your project through the package manager Composer. If Composer isn't already installed on your system, you can download it and then run the following command in your project directory:
composer require symfony/polyfill-php83
You can use the provided features just as you typically would in PHP 8.3:
if(json_validate($jsonString)) {
//process JSON
}
mb_str_pad($str, $pad_length, $pad_string, $pad_type);
//or any other function available
Remember that the purpose of this polyfill package is to allow usage of these functions as if you were running PHP 8.3, even if you're actually using an earlier version.
The principal documentation for symfony/polyfill-php83 is available in the main Polyfill README on the Symfony GitHub repository. This README provides general instructions and details about the polyfill package. For more specific information about PHP 8.3 features and their initial RFCs, you can refer to the links provided in the README. So, check out the linked README for detailed usage instructions, feature definitions, and much more about the symfony polyfill-php83 package.