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

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

lixunguan/pinyin
================

chinese to pinyin

1(11y ago)025MITPHP

Since Oct 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/LiXunGuan/pinyin)[ Packagist](https://packagist.org/packages/lixunguan/pinyin)[ RSS](/packages/lixunguan-pinyin/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

汉字转拼音
=====

[](#汉字转拼音)

安装
==

[](#安装)

添加 `"lixunguan/pinyin": "*"` 到 [`composer.json`](http://getcomposer.org).

```
composer.phar install

```

获取拼音首字母
=======

[](#获取拼音首字母)

```
  return Pinyin::make('我们')->firstLetter(); // 输出 wm
```

获取完整拼音
======

[](#获取完整拼音)

```
  return Pinyin::make('我们')->full(); // 输出 women
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

4236d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f69a44346304db4ed8c3b689a979f2992dc96e6bf168a806b5c6f966146f30c7?d=identicon)[maple](/maintainers/maple)

---

Top Contributors

[![LiXunGuan](https://avatars.githubusercontent.com/u/7980846?v=4)](https://github.com/LiXunGuan "LiXunGuan (5 commits)")

---

Tags

PinyinChinese

### Embed Badge

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

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

###  Alternatives

[overtrue/pinyin

Chinese to pinyin translator.

4.5k6.5M72](/packages/overtrue-pinyin)[zhuzhichao/ip-location-zh

get the ip's location info with Chinese

617212.5k11](/packages/zhuzhichao-ip-location-zh)[overtrue/chinese-calendar

中国农历转换与查询工具

557103.7k4](/packages/overtrue-chinese-calendar)[zhuzhichao/bank-card-info

Get the bank card info

45464.8k](/packages/zhuzhichao-bank-card-info)[douyasi/identity-card

Chinese Identity Card package

17851.4k3](/packages/douyasi-identity-card)[thl/pinyin

Romanization tool for Traditional Chinese

2519.1k](/packages/thl-pinyin)

PHPackages © 2026

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