PHPackages                             aweitian/pinyin - 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. aweitian/pinyin

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

aweitian/pinyin
===============

php 汉字转拼音

1.0.0(7y ago)05.9k↓18.8%MITPHPPHP &gt;=5.3.0

Since Oct 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aweitian/PinYin)[ Packagist](https://packagist.org/packages/aweitian/pinyin)[ Docs](https://github.com/aweitian/PinYin)[ RSS](/packages/aweitian-pinyin/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

php 汉字转拼音
=========

[](#php-汉字转拼音)

安装组件
----

[](#安装组件)

使用 composer 命令进行安装或下载源代码使用。

> composer require aweitian/pinyin

```
PinYin::convert('占/位/符-为-空abc edf', 'first', '', '')
//zwfwkabcedf
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2810d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f29043b8f5aebb2d7a34302c1bc1626bd711398bb0c5387cd8630b45057a4c9?d=identicon)[awei.tian](/maintainers/awei.tian)

---

Top Contributors

[![aweitian](https://avatars.githubusercontent.com/u/6269615?v=4)](https://github.com/aweitian "aweitian (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aweitian-pinyin/health.svg)

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

###  Alternatives

[jeroen-g/autowire

Autowire and configure using PHP 8 Attributes in Laravel.

2320.3k](/packages/jeroen-g-autowire)

PHPackages © 2026

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