PHPackages                             allovince/evapinyin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. allovince/evapinyin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

allovince/evapinyin
===================

A Pinyin transform lib

1182PHP

Since May 14Pushed 12y ago1 watchersCompare

[ Source](https://github.com/AlloVince/EvaPinyin)[ Packagist](https://packagist.org/packages/allovince/evapinyin)[ RSS](/packages/allovince-evapinyin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

EvaPinyin
=========

[](#evapinyin)

A simple Chinese characters to pinyin lib. Original Author is Kin(), modified by AlloVince for support PSR-2 and Composer.

All including 20850 Chinese characters. This lib **NOT ABLE** to handle polyphone. Only support UTF-8.

### Usage

[](#usage)

```
$pinyin = new EvaPinyin\Pinyin();
echo $pinyin->transformWithTone('拼音');
//pīn yīn

echo $pinyin->transformWithoutTone('拼音', ' ');
//pin yin

echo $pinyin->transformUcwords('拼音');
//PY
```

### Install

[](#install)

Add below line to your composer.json

```
"allovince/evapinyin": "dev-master",

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/96ac93f6fefdba56f6eca41f249433b9e937a3969ce6aab3624bff9d1e894e1d?d=identicon)[AlloVince](/maintainers/AlloVince)

---

Top Contributors

[![AlloVince](https://avatars.githubusercontent.com/u/176019?v=4)](https://github.com/AlloVince "AlloVince (3 commits)")

### Embed Badge

![Health badge](/badges/allovince-evapinyin/health.svg)

```
[![Health](https://phpackages.com/badges/allovince-evapinyin/health.svg)](https://phpackages.com/packages/allovince-evapinyin)
```

###  Alternatives

[light/hashids

Hashids for Yii2

1120.2k](/packages/light-hashids)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
