PHPackages                             mvmx/l5-opencc - 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. mvmx/l5-opencc

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

mvmx/l5-opencc
==============

OpenCC for Laravel

1.0.4(6y ago)12.8k↓30.8%1MITPHPCI failing

Since Aug 26Pushed 6y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Laravel OpenCC
==============

[](#laravel-opencc)

OpenCC for Laravel Application.

Requirements
------------

[](#requirements)

- [opencc4php](https://github.com/NauxLiu/opencc4php)

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

[](#installation)

Composer

```
$ composer require mvmx/l5-opencc
```

Configuration
-------------

[](#configuration)

Publish Configuration

```
$ php artisan vendor:publish --provider "Mvmx\OpenCC\ServiceProvider"
```

Configuration

```
    /**
     * 默认转换配置
     */

    'default' => 's2t.json',

    /**
     * 转换配置别名
     */

    'aliases' => [
        's2t' => 's2t.json', // 简体到繁体
        't2s' => 't2s.json', // 繁体到简体
        's2tw' => 's2tw.json', // 简体到台湾正体
        'tw2s' => 'tw2s.json', // 台湾正体到简体
        's2hk' => 's2hk.json', // 简体到香港繁体（香港小学学习字词表标准）
        'hk2s' => 'hk2s.json', // 香港繁体（香港小学学习字词表标准）到简体
        's2twp' => 's2twp.json', // 简体到繁体（台湾正体标准）并转换为台湾常用词汇
        'tw2sp' => 'tw2sp.json', // 繁体（台湾正体标准）到简体并转换为中国大陆常用词汇
    ],

    /**
     * 转换替换
     */

    'replace' => [

        // 简体到繁体
        's2t.json' => [
            // '艳' => '艷',
        ],

        ...
```

Usage
-----

[](#usage)

```
OpenCC::trans('四面垂杨十里荷，问云何处最花多。画楼南畔夕阳和。', 's2t'); // 四面垂楊十里荷，問云何處最花多。畫樓南畔夕陽和。
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Every ~77 days

Total

4

Last Release

2271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3440a12972b187c7f7fb3f30a6e42f34f4ac2e9ec3a8a9168b3a72d6673b62d9?d=identicon)[mix](/maintainers/mix)

---

Top Contributors

[![fitv](https://avatars.githubusercontent.com/u/50615483?v=4)](https://github.com/fitv "fitv (1 commits)")

---

Tags

laravelOpenCC

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mvmx-l5-opencc/health.svg)

```
[![Health](https://phpackages.com/badges/mvmx-l5-opencc/health.svg)](https://phpackages.com/packages/mvmx-l5-opencc)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

8035.8k](/packages/firefly-iii-data-importer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k31](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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