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.7k↓25%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 1mo ago

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 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

2225d 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

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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