PHPackages                             jeepmac/pinyinslug - 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. jeepmac/pinyinslug

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

jeepmac/pinyinslug
==================

Get Pinyin from Chinese, or translate to English.

7318[1 PRs](https://github.com/jeepmac/pinyinslug/pulls)PHP

Since Mar 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jeepmac/pinyinslug)[ Packagist](https://packagist.org/packages/jeepmac/pinyinslug)[ RSS](/packages/jeepmac-pinyinslug/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

pinyinslug
==========

[](#pinyinslug)

Tags: Chinese, Pinyin, tag, slug, URL, rewrite, Bing, permalink, SEO, 标签, 别名, PHP, Laravel

Generate URL-friendly slug, post title. Chinese to Pinyin. Tested on Laravel.

Due to 'PinyinBundle' in Packagist doesn't work on Laravel, I tried to porting it with Laravel.

Installation
------------

[](#installation)

The Pinyinslug service provider can be installed via [composer](http://getcomposer.org) by requiring the `jeepmac/pinyinslug` package in your project's `composer.json`.

```
{
    "require": {
        "jeepmac/pinyinslug": "dev-master"
    }
}
```

Next, add the service provider to `app/config/app.php`.

```
'providers' => [
    //..
    'Jeepmac\Pinyinslug\PinyinslugServiceProvider',
]
```

That's it! You're good to go.

Here is a little example:

```
$str = Pinyinslug::ats_pinyin('生活 in Shanghai');
```

$str will turn to be 'sheng-huo--in-shanghai'.

Then I added Bing Translation function. You need to apply client id from Microsoft if you want to 'English' instead of 'pinyin'.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

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://avatars.githubusercontent.com/u/60355?v=4)[jeepmac](/maintainers/jeepmac)[@jeepmac](https://github.com/jeepmac)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jeepmac-pinyinslug/health.svg)

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

###  Alternatives

[omnia-digital/livewire-calendar

Laravel Livewire calendar component

13262.4k](/packages/omnia-digital-livewire-calendar)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

94113.9k5](/packages/marcelweidum-filament-expiration-notice)[nass600/get-id3

PHP library for handling audio/video files metadata

5833.3k3](/packages/nass600-get-id3)

PHPackages © 2026

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