symfony/polyfill-php80
Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 79
- Release rhythm 81
- Longevity 100
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: 3
- age_days: 2409
- days_rel: 129
- days_push: 129
- n_releases_24m: 4
Adoption not part of the score
1725 stars · 26 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Symfony component that backports PHP 8.0 core features (such as str_contains, str_starts_with, str_ends_with, Stringable, ValueError, and PhpToken) to older PHP versions. It lets libraries and applications use PHP 8.0 APIs while still running on PHP 7.x.
Use cases
- use str_contains and str_starts_with on PHP 7.4
- make my library compatible with older PHP versions
- backport PHP 8.0 features to PHP 7
- get Stringable interface and ValueError on legacy PHP
- run code using PhpToken on PHP 7
- avoid version checks for PHP 8 string functions
When to choose
- you maintain a library supporting both PHP 7 and PHP 8
- you need PHP 8.0 core functions/classes on older runtimes
- you want a tiny, MIT-licensed, widely-tested compatibility shim
When to avoid
- your code targets PHP 8.0+ only
- you need polyfills for newer PHP versions like 8.1 or 8.2 (use the matching polyfill packages)
Facets
library · maturity stable
developer-tools developer-tools programming-languages cross-platform php cli polyfill shim php8 compatibility symfony-component
5 sources
- readme: https://github.com/symfony/polyfill-php80 · fetched 2026-08-28 · aa82982386e9
- homepage: https://symfony.com/polyfill-php80 · fetched 2026-08-29 · 382a8120ff1e
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/releases · fetched 2026-08-29 · 5bd749e2b676
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · 0739a28df2e8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/polyfill-php80 | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="symfony/polyfill-php80")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem