PHPackages                             ejesus/laravel-auto-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. [Localization &amp; i18n](/categories/localization)
4. /
5. ejesus/laravel-auto-translator

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

ejesus/laravel-auto-translator
==============================

A Laravel package that leverages the DeepL Translation API to automatically translate all your language files based on an existing translation, making multilingual projects faster and easier to manage.

v1.0.1(1y ago)02MITPHPPHP ^8.3.0CI passing

Since Jan 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/devEJesus/laravel-auto-translater)[ Packagist](https://packagist.org/packages/ejesus/laravel-auto-translator)[ RSS](/packages/ejesus-laravel-auto-translator/feed)WikiDiscussions main Synced today

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

Laravel Auto Translator Package
===============================

[](#laravel-auto-translator-package)

A Laravel package that automatically translates content based on user input. This package allows users to specify a source language (`--from`) and a target language (`--to`), supporting multiple target languages by separating them with commas (e.g., `pt,es`). The package uses Deepl API for translation, requiring an API key to work.

Installation
------------

[](#installation)

1. **Install the package** via Composer:

```
composer require edgar/laravel-auto-translator

```

2. **Add the API key to your `.env` file**: To use Deepl API, you need to obtain an API key from Deepl () and set it in your `.env` file.

```
TRANSLATE_API_KEY=your_deepl_api_key

```

Usage
-----

[](#usage)

You can use the package with the following Artisan command:

```
php artisan translator:run --from= --to=

```

### Parameters

[](#parameters)

- `--from`: The source language code (e.g., `en` for English, `de` for German).
- `--to`: The target language(s) for translation. You can specify multiple target languages by separating them with commas (e.g., `pt,es` for Portuguese and Spanish).

### Example

[](#example)

To translate from English (`en`) to Portuguese (`pt`) and Spanish (`es`):

```
php artisan translator:run --from=en --to=pt,es

```

This command will automatically translate your content from English to both Portuguese and Spanish using Deepl API.

Requirements
------------

[](#requirements)

- Deepl API Key: You need to create an account on Deepl and generate an API key. Place the key in your `.env` file under the variable `TRANSLATE_API_KEY`.
- Laravel 8 or higher.

Notes
-----

[](#notes)

- The translation will be done based on the API capabilities of Deepl. If Deepl API has any rate limits or issues, the translation process might be delayed.
- The `--from` and `--to` languages should use standard ISO language codes (e.g., `en`, `es`, `de`, etc.).
- If multiple target languages are provided, the content will be translated and saved for each target language specified.

License
-------

[](#license)

This package is open source and available under the [MIT License](LICENSE).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

2

Last Release

525d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/136651796?v=4)[Edgar Jesus](/maintainers/devEJesus)[@devEJesus](https://github.com/devEJesus)

---

Top Contributors

[![devEJesus](https://avatars.githubusercontent.com/u/136651796?v=4)](https://github.com/devEJesus "devEJesus (8 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ejesus-laravel-auto-translator/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[vemcogroup/laravel-translation

Translation package for Laravel to scan for localisations and up/download to poeditor

136327.1k3](/packages/vemcogroup-laravel-translation)

PHPackages © 2026

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