PHPackages                             jiemoon/chinese-slug - 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. jiemoon/chinese-slug

ActiveLibrary

jiemoon/chinese-slug
====================

Laravel Package for translate string to english, then use it to create a slug

0.1.0(9y ago)154MITPHPPHP &gt;=5.6.4

Since Apr 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jiemoon/chinese-slug)[ Packagist](https://packagist.org/packages/jiemoon/chinese-slug)[ RSS](/packages/jiemoon-chinese-slug/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

chinese-slug
============

[](#chinese-slug)

[![Latest Version on Packagist](https://camo.githubusercontent.com/67a6f6bbb75d8e0e57cf11e76bd1aa4493efe711c9896dd22779dc2d4ddc1b9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a69656d6f6f6e2f6368696e6573652d736c75672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jiemoon/chinese-slug)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7b6dda5dbe45e167e40c8b778b0624b8bf663cefbf7c8dd5b8fb6e05d9c0ef0c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a69656d6f6f6e2f6368696e6573652d736c75672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jiemoon/chinese-slug)[![Coverage Status](https://camo.githubusercontent.com/12f174dbd3ca79765115800674d2528fd62c4be13ba9fe478eda160fe44948b2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a69656d6f6f6e2f6368696e6573652d736c75672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jiemoon/chinese-slug/code-structure)[![Quality Score](https://camo.githubusercontent.com/90c88b85f434815ef2f0f5265d9fb90f79464698e918465bd3ea8c2f0501db2f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a69656d6f6f6e2f6368696e6573652d736c75672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jiemoon/chinese-slug)[![Total Downloads](https://camo.githubusercontent.com/b56e9cc8902c6bd70a0a4ea5f98fef612f7f5b6a35f7e28c5ef10a214e1c9243/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a69656d6f6f6e2f6368696e6573652d736c75672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jiemoon/chinese-slug)

Laravel Package for translate string to english, then use it to create a slug.

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following..

```
src/
tests/

```

Install
-------

[](#install)

Via Composer

```
$ composer require jiemoon/chinese-slug
```

Usage
-----

[](#usage)

Modify `.env`, Add Biadu Fanyi Config.

> You can get the config, after register an account in [api.fanyi.baidu.com](http://api.fanyi.baidu.com/api/trans/product/index)

```
BAIDU_FANYI_API_ID=xxx
BAIDU_FANYI_API_SECRET=xxx

```

Edit `cofig/app.php` Add Provider and Alias

```
        Jiemoon\ChineseSlug\ChineseSlugServiceProvider::class,
        ...
        'ChineseSlug' => Jiemoon\ChineseSlug\Facades\ChineseSlug::class,
```

```
$slug = \ChineseSlug::generateUniqueSlug($title, 'posts');
# or
$slug = app('chineseslug')->generateUniqueSlug($title, 'posts');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ phpunit
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3318d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/569f9f7819009ef8b5003e948ae38ac7feb19b975ce17a19ec6e57bbd02151df?d=identicon)[jiemoon](/maintainers/jiemoon)

---

Top Contributors

[![jiemoon](https://avatars.githubusercontent.com/u/4746543?v=4)](https://github.com/jiemoon "jiemoon (15 commits)")

---

Tags

chinese-translationslug

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jiemoon-chinese-slug/health.svg)

```
[![Health](https://phpackages.com/badges/jiemoon-chinese-slug/health.svg)](https://phpackages.com/packages/jiemoon-chinese-slug)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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