PHPackages                             jaggle/fanyi - 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. jaggle/fanyi

Abandoned → [we have renamed this project to jjsty1e/fanyi, please use the new one instead.](/?search=we%20have%20renamed%20this%20project%20to%20jjsty1e%2Ffanyi%2C%20please%20use%20the%20new%20one%20instead.)Project[Localization &amp; i18n](/categories/localization)

jaggle/fanyi
============

a PHP version of project afc163/fanyi

v0.2.10(4y ago)138MITPHPPHP &gt;=5.6.0CI failing

Since Dec 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jjsty1e/fanyi)[ Packagist](https://packagist.org/packages/jaggle/fanyi)[ RSS](/packages/jaggle-fanyi/feed)WikiDiscussions master Synced today

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

Fanyi
=====

[](#fanyi)

A PHP version of [afc163/fanyi](https://github.com/afc163/fanyi)

> A 🇨🇳 and 🇺🇸 translate tool in your command line.

[![jaggle/fanyi](https://camo.githubusercontent.com/fed552672234d111c395f0200f48f3f04df172f41ebff6a6b9334d5024f1f1af/68747470733a2f2f692e6c6f6c692e6e65742f323031392f31322f30352f586b78744b5266534a756d734955512e706e67)](https://camo.githubusercontent.com/fed552672234d111c395f0200f48f3f04df172f41ebff6a6b9334d5024f1f1af/68747470733a2f2f692e6c6f6c692e6e65742f323031392f31322f30352f586b78744b5266534a756d734955512e706e67)

Install
-------

[](#install)

```
$ composer global require jjsty1e/fanyi
```

> I suggest you to use [cgr](https://github.com/consolidation/cgr) to install this command to avoide dependices conflicts.

then add `$HOME/.composer/vendor/bin` to `PATH` if you haven't yet.

Usage
-----

[](#usage)

```
$ fanyi word
```

For short:

```
$ fy word
```

Translation data is fetched from [iciba.com](http://iciba.com) and [fanyi.youdao.com](http://fanyi.youdao.com), and only support translation between Chinese and English.

In Mac/Linux bash, words will be pronounced by `say` command.

Translate one word.

```
$ fanyi love
```

```
 love  英[ lʌv ] 美[ lʌv ]   ~  iciba.com

 - vt.& vi. 爱，热爱；爱戴；喜欢；赞美，称赞；
 - vt. 喜爱；喜好；喜欢；爱慕；
 - n. 爱情，爱意；疼爱；热爱；爱人，所爱之物；

 1. Love is the radical of lovely , loveliness , and loving.
    Love是lovely, loveliness 及loving的词根.
 2. She rhymes " love " with " dove ".
    她将 " love " 与 " dove " 两字押韵.
 3. In sports, love means nil.
    体育中, love的意思是零.
 4. It's been years since any hazardous - waste site as dramatic as Love Canal has been discovered.
    自Love运河中发现触目惊心的危险废料堆放场所以来,已过去多年.
 5. Is love, love, love oaths , evanescent love, absolutely love, love always can not escape this rule.
    是爱,示爱, 誓爱, 逝爱, 绝爱, 爱情始终逃不过这个规律.

  --------

 love  英[ lʌv ] 美[ lʌv ]   ~  fanyi.youdao.com

 - n. 爱；爱情；喜好；（昵称）亲爱的；爱你的；心爱的人；钟爱之物；零分
 - v. 爱恋（某人）；关爱；喜欢（某物或某事）；忠于
 - n. (Love) （英、菲、瑞、美）洛夫（人名）

 1. love
    爱, 爱情, 爱心
 2. Endless Love
    无尽的爱, 蓝色生死恋, 不了情
 3. puppy love
    早恋, 青春期恋爱, 初恋

  --------
```

More words.

```
$ fanyi make love
```

Support Chinese, even sentence.

```
$ fanyi 和谐
```

```
$ fanyi 那只敏捷的棕毛狐狸跃过那只懒狗
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

Every ~75 days

Recently: every ~150 days

Total

9

Last Release

1745d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fc5f4140d77f7fe92cd0e1989dde24825bb71f05a452eb80828d57ff2a75af1?d=identicon)[jjsty1e](/maintainers/jjsty1e)

---

Top Contributors

[![jjsty1e](https://avatars.githubusercontent.com/u/5469845?v=4)](https://github.com/jjsty1e "jjsty1e (19 commits)")

---

Tags

translation toolEnglish to Chinese

### Embed Badge

![Health badge](/badges/jaggle-fanyi/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

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