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

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

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

A Natural language translation SDK.

v1.0(6y 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 3w ago

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

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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