PHPackages                             alexstack/laravel-cms-plugin-translator - 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. alexstack/laravel-cms-plugin-translator

ActiveAmila-laravel-cms-plugin

alexstack/laravel-cms-plugin-translator
=======================================

Automatically translate content via Baidu FanYi API or Google Translate API when you add or edit a page

0.2.7(6y ago)38MITPHPPHP &gt;=7.0.0

Since Jan 18Pushed 6y ago2 watchersCompare

[ Source](https://github.com/AlexStack/Laravel-CMS-Plugin-Translator)[ Packagist](https://packagist.org/packages/alexstack/laravel-cms-plugin-translator)[ Docs](https://github.com/AlexStack/Laravel-CMS-Plugin-Translator)[ RSS](/packages/alexstack-laravel-cms-plugin-translator/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

Translate content online by Baidu AI or Google AI
=================================================

[](#translate-content-online-by-baidu-ai-or-google-ai)

- This is an Amila Laravel CMS Plugin
- Automatically translate content online via Baidu FanYi API or Google Translate API or Google Translate Free Version

Install it via the backend
--------------------------

[](#install-it-via-the-backend)

- Go to the CMS settings page -&gt; Plugin -&gt; search for remote image
- Find alexstack/laravel-cms-plugin-translator
- Click the Install button

What the plugin do for us?
--------------------------

[](#what-the-plugin-do-for-us)

- Translate content online
- Add the translate result to the page content

Install it via command line manually
------------------------------------

[](#install-it-via-command-line-manually)

```
composer require alexstack/laravel-cms-plugin-translator

php artisan migrate --path=./vendor/alexstack/laravel-cms-plugin-translator/src/database/migrations

php artisan vendor:publish --force --tag=translator-views

php artisan laravelcms --action=clear
```

How to use it?
--------------

[](#how-to-use-it)

- It's enabled after install by default. You can see a Translator tab when you edit a page.

- Note: Google translate API not support before 1.0 version.

How to change the settings?
---------------------------

[](#how-to-change-the-settings)

- You can change the settings by edit plugin.page-tab-translator
- Change the api\_provider to baidu or google
- Set up app\_id and app\_key from the baidu or google translate api page. eg.

```
{
    "blade_file": "translator",
    "tab_name": "__(translator)",
    "php_class": "App\\LaravelCms\\Plugins\\Translator\\Controllers\\TranslatorController",
    "api_provider": "baidu",
    "app_id": "201911000357",
    "app_key": "cX6xUKysHBXaH"
}
```

Where can I get the app\_id &amp; app\_key
------------------------------------------

[](#where-can-i-get-the-app_id--app_key)

- Option 1: Provider Baidu, From , FREE, only 1 translate allowed per second

```
{
    "api_provider": "Baidu",
    "app_id": "201911000357",
    "app_key": "cX6xUKysHBXaH"
}
```

- Option 2: Provider Google, Advanced version. NOT SUPPORT YET. From , Need to pay for what you use, price is $20 per million characters in 2020.

```
{
    "api_provider": "google",
    "app_id": "AizSxUKysHBsds2",
    "app_key": "AizSxUKysHBsds2"
}
```

Use the free Google translate
-----------------------------

[](#use-the-free-google-translate)

- Set provider to Google\_Free
- Option 1: Set both app\_id &amp; app\_key to google\_free\_001, then our CMS will use package  to do the translate. (It's the default setting after install)

```
{
    "api_provider": "Google_Free",
    "app_id": "google_free_001",
    "app_key": "google_free_001"
}
```

- Option 2: Set both app\_id &amp; app\_key to google\_free\_002, then our CMS will use the package  to do the translate, YOU NEED INSTALL THE PACKAGE VIA COMMAND LINE FIRST: composer require stichoza/google-translate-php

```
{
    "api_provider": "google_free",
    "app_id": "google_free_002",
    "app_key": "google_free_002"
}
```

- Limitations of free Google translate: (1) Google only allows a maximum of 5000 characters to be translated at once. If you want to translate a longer text, you can split it to shorter parts, and translate them one-by-one. (2) 503,429,403 error it is most likely that Google has banned your external IP address and/or requires you to solve a CAPTCHA. This is not a bug in this package. Google has become stricter, and it seems like they keep lowering the number of allowed requests per IP per a certain amount of time. You may need to wait 12-36 hours. [More details](https://github.com/Stichoza/google-translate-php#known-limitations)

Improve this plugin &amp; documents
-----------------------------------

[](#improve-this-plugin--documents)

- You are very welcome to improve this plugin and how to use documents

License
-------

[](#license)

- This Amila Laravel CMS plugin is an open-source software licensed under the MIT license.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

Every ~0 days

Total

10

Last Release

2309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/901cd2118e154c3edde87b308ac1b95ce5b98ee88fedd0be3774d5961e71e389?d=identicon)[AlexStack](/maintainers/AlexStack)

---

Top Contributors

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

---

Tags

laravellaravel6laravelcmstranslatelaraveltranslatetranslatoramila laravel cmsamila laravel cms plugin

### Embed Badge

![Health badge](/badges/alexstack-laravel-cms-plugin-translator/health.svg)

```
[![Health](https://phpackages.com/badges/alexstack-laravel-cms-plugin-translator/health.svg)](https://phpackages.com/packages/alexstack-laravel-cms-plugin-translator)
```

###  Alternatives

[statickidz/php-google-translate-free

Google Translate Free library for PHP

289258.8k6](/packages/statickidz-php-google-translate-free)

PHPackages © 2026

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