symfony/string
Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 95
- Release rhythm 95
- 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: 0
- age_days: 2524
- days_rel: 35
- days_push: 35
- n_releases_24m: 44
Adoption not part of the score
1781 stars · 19 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library from the Symfony ecosystem providing an object-oriented API for string manipulation that uniformly handles bytes, UTF-8 code points, and grapheme clusters. It also includes utilities like a slugger and an English inflector for pluralization and singularization.
Use cases
- manipulate unicode strings safely in php
- handle emoji and grapheme clusters in text processing
- generate url slugs from arbitrary text
- pluralize and singularize english words
- work with utf-8 code points instead of bytes
- truncate and pad multibyte strings correctly
- normalize string case for internationalized content
When to choose
- your php project needs correct unicode-aware string operations
- you need slug generation or word inflection out of the box
- you want a consistent string API regardless of mbstring availability
- you are already using Symfony components
When to avoid
- you only need simple ASCII string handling covered by native PHP functions
- you work outside the PHP ecosystem
- you need heavyweight text processing like full NLP or regex-heavy parsing
Facets
library · maturity stable
nlp internationalization developer-tools programming-languages developer-tools text-editors php cross-platform strings unicode utf-8 grapheme-clusters slugger inflector symfony-component object-oriented-api localization
6 sources
- readme: https://github.com/symfony/string · fetched 2026-08-28 · 0422b6286ca1
- homepage: https://symfony.com/string · fetched 2026-08-29 · b4b9f2ccecb3
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/components/string.html · fetched 2026-08-29 · 72f4650b4c92
- site_page: https://symfony.com/releases · fetched 2026-08-29 · 5bd749e2b676
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · cb9687c6ccb6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/string | main | 96 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem