overtrue/pinyin
🇨🇳 基于词库的中文转拼音优质解决方案 observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 81
- Release rhythm 49
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 177.5
- age_days: 4432
- days_rel: 180
- days_push: 118
- n_releases_24m: 3
Adoption not part of the score
4461 stars · 761 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library that converts Chinese text to pinyin using the mozillazg/pinyin-data dictionary, with accurate handling of polyphonic characters. It supports multiple tone styles, surname recognition, and permalink/abbreviation generation.
Use cases
- convert Chinese sentences to pinyin with tone marks
- generate pinyin slugs for article URLs
- get pinyin abbreviations for search indexing
- handle polyphonic Chinese characters correctly
- convert Chinese names to pinyin with surname detection
- output pinyin without tones or with numeric tones
When to choose
- you need accurate Chinese-to-pinyin conversion in a PHP project
- you need polyphonic character (多音字) disambiguation
- you want pinyin-based URL slugs or search indexes
When to avoid
- your project is not in PHP
- you need Chinese-to-English translation rather than romanization
- you need pinyin conversion for other Sinitic languages like Cantonese
Facets
library · maturity stable
nlp parser internationalization developer-tools php cross-platform pinyin chinese transliteration composer polyphonic-characters natural-language-processing localization
2 sources
- readme: https://github.com/overtrue/pinyin · fetched 2026-08-28 · 412b6911267c
- homepage: https://github.com/overtrue/pinyin · fetched 2026-08-29 · 0b388762b422
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| overtrue/pinyin | main | 74 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem