PHPackages                             jjsty1e/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jjsty1e/fanyi

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

jjsty1e/fanyi
=============

a PHP version of project afc163/fanyi

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

Since Dec 5Pushed 2y ago1 watchersCompare

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

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

1748d 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/jjsty1e-fanyi/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[overtrue/php-opencc

中文简繁转换，支持词汇级别的转换、异体字转换和地区习惯用词转换（中国大陆、台湾、香港、日本新字体）。基于 \[BYVoid/OpenCC\](https://github.com/BYVoid/OpenCC) 数据实现。

12130.7k](/packages/overtrue-php-opencc)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

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