{"id":86724,"library":"symfony-polyfill-php80","title":"Symfony PHP 8.0 Polyfill","description":"Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions","status":"active","version":"1.37.0","language":"php","source_language":null,"source_url":"https://github.com/symfony/polyfill-php80","tags":["polyfill","php8","backport","symfony","compatibility"],"install":[{"cmd":"composer require symfony/polyfill-php80","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Php80","correct":"use Symfony\\Polyfill\\Php80\\Php80;"}],"quickstart":{"code":"use Symfony\\Polyfill\\Php80\\Php80;\n\n// The polyfill provides functions like str_contains, str_starts_with, etc.\necho Php80::str_contains('hello world', 'world') ? 'yes' : 'no';","lang":"php","description":"Uses the polyfill's str_contains function (available in PHP 8.0+)."},"warnings":[{"fix":"For attributes like #[\\Attribute], use symfony/polyfill-php81.","message":"This polyfill only provides functions, not classes or attributes.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'8.0':3,10 'backport':7,18 'compat':20 'featur':11 'lower':13 'php':2,9,14 'php8':17 'polyfil':4,6,16 'symfoni':1,5,19 'version':15","created_at":"2026-06-19T08:06:53.534845+00:00","updated_at":"2026-06-19T08:06:53.534845+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-php80","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}}