PHPackages                             aliliin/language-translation - 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. aliliin/language-translation

ActiveLibrary

aliliin/language-translation
============================

A Natural language translation SDK.

v1.0(5y ago)39MITPHPCI failing

Since May 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aliliin/language-translation)[ Packagist](https://packagist.org/packages/aliliin/language-translation)[ RSS](/packages/aliliin-language-translation/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (6)Used By (0)

 language-translation
======================

[](#-language-translation-)

 A Natural language translation SD..

[![Build Status](https://camo.githubusercontent.com/cd685acc0e1bab828591349f6fd3635b79747d51841d5b16a8810546420b165b/68747470733a2f2f7472617669732d63692e636f6d2f616c696c69696e2f6c616e67756167652d7472616e736c6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/aliliin/language-translation)[![StyleCI build status](https://camo.githubusercontent.com/71d76bc064693b4893a303d437984f62d6ac70b6efce384903d1dff53069af1d/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236363138323734312f736869656c64)](https://camo.githubusercontent.com/71d76bc064693b4893a303d437984f62d6ac70b6efce384903d1dff53069af1d/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236363138323734312f736869656c64)[![Latest Stable Version](https://camo.githubusercontent.com/c17b2a1188ffc856dccc36f6099885f08696ac9a2adfea65cf100da7db539299/68747470733a2f2f706f7365722e707567782e6f72672f616c696c69696e2f6c616e67756167652d7472616e736c6174696f6e2f76)](//packagist.org/packages/aliliin/language-translation)[![Latest Unstable Version](https://camo.githubusercontent.com/e105baa42e28b80d0ecf00830191ea5bb573f2e42850075f41a0747df746ef31/68747470733a2f2f706f7365722e707567782e6f72672f616c696c69696e2f6c616e67756167652d7472616e736c6174696f6e2f762f756e737461626c65)](//packagist.org/packages/aliliin/language-translation)[![Total Downloads](https://camo.githubusercontent.com/ac03379b76b26b025299510c2180d179081712c0ca4909842b59d682b072a06e/68747470733a2f2f706f7365722e707567782e6f72672f616c696c69696e2f6c616e67756167652d7472616e736c6174696f6e2f646f776e6c6f616473)](//packagist.org/packages/aliliin/language-translation)[![License](https://camo.githubusercontent.com/c97614c6d82ff84e0b199c7afd596e766f5b598f7712b68bbb7f78ae30afa71f/68747470733a2f2f706f7365722e707567782e6f72672f616c696c69696e2f6c616e67756167652d7472616e736c6174696f6e2f6c6963656e7365)](//packagist.org/packages/aliliin/language-translation)

介绍
--

[](#介绍)

目前已支持有道平台

- [有道智云](https://ai.youdao.com/gw.s)

安装
--

[](#安装)

```
$ composer require aliliin/language-translation dev-master  -vvv
```

使用
--

[](#使用)

```
require_once __DIR__ . '/vendor/autoload.php';

use Aliliin\LanguageTranslation\Translation;

$config = [
    'provider' => 'youdao',
    'youdao' => [
        'provider' => [
            'app_key' => 'xxxxxxx',
            'sec_key' => 'xxxxxxxx',
        ],
        'language' => [
            'from' => 'zh-CHS',
            'to' => 'en',
        ]
    ],
];

$translation = new Translation($config);
```

获取翻译结果
------

[](#获取翻译结果)

```
$res = $translation->translation('高兴');

```

示例：

```
[
    "happy",
]

```

参数说明
----

[](#参数说明)

```
 translation(string $language)

```

> -`$language` - 需要翻译的词语

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~7 days

Total

2

Last Release

2169d ago

Major Versions

0.0.1 → v1.02020-06-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22074839?v=4)[小高同学](/maintainers/aliliin)[@aliliin](https://github.com/aliliin)

---

Top Contributors

[![aliliin](https://avatars.githubusercontent.com/u/22074839?v=4)](https://github.com/aliliin "aliliin (26 commits)")

### Embed Badge

![Health badge](/badges/aliliin-language-translation/health.svg)

```
[![Health](https://phpackages.com/badges/aliliin-language-translation/health.svg)](https://phpackages.com/packages/aliliin-language-translation)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[laravel/browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.

5139.4M286](/packages/laravel-browser-kit-testing)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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