{"id":89278,"library":"symfony-polyfill-php72","title":"Symfony PHP 7.2 Polyfill","description":"Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions.","status":"active","version":"1.31.0","language":"php","source_language":null,"source_url":"https://github.com/symfony/polyfill-php72","tags":["polyfill","php72","symfony","compatibility"],"install":[{"cmd":"composer require symfony/polyfill-php72","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Php72","correct":"use Symfony\\Polyfill\\Php72\\Php72;"}],"quickstart":{"code":"use Symfony\\Polyfill\\Php72\\Php72;\n\n// The polyfill automatically loads functions like `spl_object_id`\n$id = spl_object_id(new stdClass());","lang":"php","description":"Automatically provides PHP 7.2 functions when running on older PHP versions."},"warnings":[{"fix":"Ensure your code only relies on the polyfilled functions; upgrade to PHP 7.2+ for full support.","message":"This polyfill only provides functions, not all PHP 7.2 features (e.g., parameter type widening).","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'7.2':3,10 'backport':7 'compat':19 'featur':11 'lower':13 'php':2,9,14 'php72':17 'polyfil':4,6,16 'symfoni':1,5,18 'version':15","created_at":"2026-06-19T08:44:52.977288+00:00","updated_at":"2026-06-19T08:44:52.977288+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://symfony.com","github":"https://github.com/symfony/polyfill-php72","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}