symfony/polyfill-php72
Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3372
- days_rel: n/a
- days_push: 723
- n_releases_24m: 0
Adoption not part of the score
4728 stars · 6 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Symfony component that backports PHP 7.2 core and mbstring functions (such as spl_object_id, stream_isatty, mb_ord, mb_chr, and utf8_encode/decode) to older PHP versions. It is installed via Composer and lets code written against PHP 7.2 APIs run on earlier PHP runtimes.
Use cases
- run code using PHP 7.2 functions on PHP 7.1 or older
- use mb_ord and mb_chr without PHP 7.2 mbstring
- get PHP_FLOAT_* constants and PHP_OS_FAMILY on older PHP
- make a library compatible across PHP versions
- backport utf8_encode and utf8_decode to older runtimes
When to choose
- you maintain a library that must support PHP versions below 7.2
- you need specific PHP 7.2 functions or constants on older runtimes
- you want a tiny, MIT-licensed, Composer-installable compatibility shim
When to avoid
- your code targets PHP 7.2 or newer only
- you need polyfills for other PHP versions (use the matching symfony/polyfill package)
- you are not using Composer or PHP
Facets
library · maturity maintenance
sdk developer-tools programming-languages developer-tools web-development cross-platform php cross-platform windows polyfill shim php-72 compatibility symfony-component mbstring composer
5 sources
- readme: https://github.com/symfony/polyfill-php72 · fetched 2026-08-28 · 3968fe22eb94
- homepage: https://symfony.com/polyfill-php72 · fetched 2026-08-29 · 95cacd2df7ab
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/releases · fetched 2026-08-29 · f109a7a4a5da
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · 35b9da44a68e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/polyfill-php72 | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="symfony/polyfill-php72")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem