PHPackages                             fastd/i18n - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. fastd/i18n

ActiveLibrary[Localization &amp; i18n](/categories/localization)

fastd/i18n
==========

v0.1.0(8y ago)1181PHPPHP &gt;=5.6

Since Jan 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fastdlabs/i18n-provider)[ Packagist](https://packagist.org/packages/fastd/i18n)[ RSS](/packages/fastd-i18n/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

i18n
====

[](#i18n)

i18可以让你的项目能够满足更多语言环境下的需求，能够有效减少多语言环境下的差异。

除了能够处理多语言情况，还能使用i18n去统一处理错误码的情况。

例如我们去定义一个 10086 的错误码，对应输出错误参数仅需要:

1. 创建语言文件: `zh_cn.yml` =&gt; `10086: "API 演示错误"`
2. 在输出的时候 `i18n()->trans("10086")` 或者 `trans("10086")` 即能完成对应错误码输出

#### 参考阅读

[](#参考阅读)

-
- [http://open.weibo.com/wiki/Error\_code](http://open.weibo.com/wiki/Error_code)
- [https://open.taobao.com/doc2/detail.htm?articleId=114&amp;docType=1&amp;treeId=null](https://open.taobao.com/doc2/detail.htm?articleId=114&docType=1&treeId=null)

### 贡献

[](#贡献)

非常欢迎感兴趣，愿意参与其中，共同打造更好PHP生态，Swoole生态的开发者。

如果你乐于此，却又不知如何开始，可以试试下面这些事情：

- 在你的系统中使用，将遇到的问题 [反馈](https://github.com/JanHuang/fastD/issues)。
- 有更好的建议？欢迎联系  或 [新浪微博:编码侠](http://weibo.com/ecbboyjan)。

### 联系

[](#联系)

如果你在使用中遇到问题，请联系: . 微博: [编码侠](http://weibo.com/ecbboyjan)

License MIT
-----------

[](#license-mit)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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

3092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94c2bc821caf23977e1c3deea85e3cbc9a73a632e1afaf778638f7fe9da1c42b?d=identicon)[JanHuang](/maintainers/JanHuang)

---

Top Contributors

[![JanHuang](https://avatars.githubusercontent.com/u/7090871?v=4)](https://github.com/JanHuang "JanHuang (6 commits)")

### Embed Badge

![Health badge](/badges/fastd-i18n/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

182687.6M5.4k](/packages/nesbot-carbon)[jms/translation-bundle

Puts the Symfony Translation Component on steroids

42411.0M74](/packages/jms-translation-bundle)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4382.8M19](/packages/lexik-translation-bundle)[php-translation/symfony-bundle

3244.2M10](/packages/php-translation-symfony-bundle)[symfony/ux-translator

Exposes Symfony Translations directly to JavaScript.

26685.1k6](/packages/symfony-ux-translator)

PHPackages © 2026

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