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 1mo ago

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

Maintenance42

Moderate activity, may be stable

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

472d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4328ec47e7dc57fbeb8d6f2421fd7abbe4421e55ce44d87e90dcc466a10c0de9?d=identicon)[devEJesus](/maintainers/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

[vemcogroup/laravel-translation

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

135304.0k2](/packages/vemcogroup-laravel-translation)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.3k](/packages/typicms-base)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

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