# symfony/polyfill-util

Symfony utilities for portability of PHP codes

Repository: https://github.com/symfony/polyfill-util
Canonical: https://ross.abutalabs.com/products/polyfill-util
Homepage: https://symfony.com/polyfill-util
Language: PHP
License: MIT
License Family: permissive
Topics: symfony, component, symfony-component, polyfill, compat, compatibility, javascript, shim, symfony-polyfill
Last push: 2026-05-26T13:40:27+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 84, release rhythm 86, longevity 100
- inputs: {"age_days": 3968, "days_push": 99, "days_rel": 99, "gap_med": 6.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1316, forks 3 (observed 2026-08-28T04:04:20.850542+00:00)

## What it is
A Symfony utility library providing shared helpers for the Symfony Polyfill components, which backport newer PHP features to older PHP versions. It is an internal support package used by other polyfill packages rather than something most projects consume directly.

## Use cases
- backport newer PHP functions to older PHP versions
- write PHP code portable across PHP versions
- support library for building custom polyfills
- ensure compatibility shims behave consistently across polyfill packages

## When to choose
- you are developing or maintaining Symfony polyfill packages
- you need the internal utilities shared by Symfony polyfill components

## When to avoid
- you want actual PHP feature polyfills - install symfony/polyfill instead
- you are not working with PHP or the Symfony polyfill ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools, plugin-system
- domain: developer-tools, web-development, programming-languages
- platform: php, cross-platform
- tags: polyfill, shim, compatibility, symfony-component, php-compat

## Member repositories
- symfony/polyfill-util (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:20.850542+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:48:39.364584+00:00, confidence not recorded.
  - readme: https://github.com/symfony/polyfill-util (fetched 2026-08-28T04:04:20.850542+00:00, sha ac9b6f72e878)
  - homepage: https://symfony.com/polyfill-util (fetched 2026-08-29T12:07:03.711532+00:00, sha d95e96a03903)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T12:07:03.720391+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T12:07:03.722520+00:00, sha 429432437be6)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T12:07:03.724614+00:00, sha 1763f9319d38)
- Data as of 2026-08-30T08:39:29.467469+00:00.
