├── LICENSE ├── README.md └── composer.json /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-present Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Symfony Polyfill / Php72 2 | ======================== 3 | 4 | This component provides functions added to PHP 7.2 core: 5 | 6 | - [`spl_object_id`](https://php.net/spl_object_id) 7 | - [`stream_isatty`](https://php.net/stream_isatty) 8 | 9 | And also functions added to PHP 7.2 mbstring: 10 | 11 | - [`mb_ord`](https://php.net/mb_ord) 12 | - [`mb_chr`](https://php.net/mb_chr) 13 | - [`mb_scrub`](https://php.net/mb_scrub) 14 | 15 | On Windows only: 16 | 17 | - [`sapi_windows_vt100_support`](https://php.net/sapi_windows_vt100_support) 18 | 19 | Moved to core since 7.2 (was in the optional XML extension earlier): 20 | 21 | - [`utf8_encode`](https://php.net/utf8_encode) 22 | - [`utf8_decode`](https://php.net/utf8_decode) 23 | 24 | Also, it provides constants added to PHP 7.2: 25 | 26 | - [`PHP_FLOAT_*`](https://php.net/reserved.constants#constant.php-float-dig) 27 | - [`PHP_OS_FAMILY`](https://php.net/reserved.constants#constant.php-os-family) 28 | 29 | More information can be found in the 30 | [main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md). 31 | 32 | License 33 | ======= 34 | 35 | This library is released under the [MIT license](LICENSE). 36 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/polyfill-php72", 3 | "type": "metapackage", 4 | "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", 5 | "keywords": ["polyfill", "shim", "compatibility", "portable"], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Nicolas Grekas", 11 | "email": "p@tchwork.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "https://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=7.2" 20 | }, 21 | "minimum-stability": "dev", 22 | "extra": { 23 | "thanks": { 24 | "name": "symfony/polyfill", 25 | "url": "https://github.com/symfony/polyfill" 26 | } 27 | } 28 | } 29 | --------------------------------------------------------------------------------