PHPackages                             quarkinocom/laravel-translation-manager - 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. quarkinocom/laravel-translation-manager

ActiveLibrary

quarkinocom/laravel-translation-manager
=======================================

A Laravel Artisan command package to manage and automate language translations, leveraging OpenAI for high-quality translations.

v0.0.4(2y ago)19MITPHPPHP ^7.3|^8.0|^8.1|^8.2|^8.3

Since Feb 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/quarkinocom/laravel-translation-manager)[ Packagist](https://packagist.org/packages/quarkinocom/laravel-translation-manager)[ RSS](/packages/quarkinocom-laravel-translation-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Laravel Translation Manager
===========================

[](#laravel-translation-manager)

The Laravel Translation Manager is an Artisan command suite designed for managing and automating the translation process in Laravel applications. Utilizing the OpenAI API, this package simplifies tasks such as displaying, comparing, translating, and repairing language files across different languages, making it a must-have for developers working on multilingual projects.

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

[](#installation)

To get started, install the package through Composer:

```
composer require quarkinocom/laravel-translation-manager
```

This command automatically installs the package and registers its service provider via Laravel's package discovery.

Publishing Configuration
------------------------

[](#publishing-configuration)

To customize the package's settings, such as specifying your OpenAI API key, publish the configuration file:

```
php artisan vendor:publish --provider="Quarkinocom\TranslationManager\TranslationManagerServiceProvider" --tag="config"
```

This command copies the `translation-manager.php` configuration file to your project's `config` directory.

Usage
-----

[](#usage)

The package introduces several Artisan commands to streamline language file management:

### Show Command

[](#show-command)

Display a list of all translation files for a specified language, including the count of translation keys.

**Usage**:

```
php artisan language:translate show {language}
```

**Sample Command**:

```
php artisan language:translate show en
```

**Expected Output**:

```
+---------------------+---------------+-------+
| Directory           | File          | Keys  |
+---------------------+---------------+-------+
| /resources/lang/en  | messages.php  | 10    |
| /resources/lang/en  | validation.php| 42    |
+---------------------+---------------+-------+
Total files: 2

```

### Compare Command

[](#compare-command)

Compare translation files between two languages, highlighting missing or empty keys.

**Usage**:

```
php artisan language:translate compare {source-language} {target-language}
```

**Sample Command**:

```
php artisan language:translate compare en fr
```

**Expected Output**:

```
+---------------------+-----------+-----------------------+
| File                | Key       | Status                |
+---------------------+-----------+-----------------------+
| messages.php        | welcome   | Missing in target     |
| validation.php      | required  | Empty value in target |
+---------------------+-----------+-----------------------+
Differences detected: 2

```

### Translate Command

[](#translate-command)

Translate missing or empty keys from the source language to the target language. Optionally, create or update translation files.

**Usage**:

- To translate all keys:

```
php artisan language:translate translate {source-language} {target-language}
```

- To repair (translate only missing or empty keys):

```
php artisan language:translate repair {source-language} {target-language}
```

**Sample Command**:

```
php artisan language:translate translate en fr
```

**Expected Result**: This command will output the number of keys translated and API calls made, without a specific table format as the result is dependent on the translations performed.

Git Repository
--------------

[](#git-repository)

Explore or contribute to Laravel Translation Manager on GitHub:

Contributing
------------

[](#contributing)

Contributions are welcome and greatly appreciated! Feel free to fork the repository, make your changes, and submit a pull request. For substantial changes, please open an issue first to discuss what you would like to change. Remember to update tests as needed.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

4

Last Release

821d ago

PHP version history (2 changes)v0.0.1PHP ^7.3|^8.0|^8.1

v0.0.2PHP ^7.3|^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/fff585cf7e42703e5a38fd05de51b5e6b22249ecb0aaf3cfe6abd177186a2052?d=identicon)[quarkino](/maintainers/quarkino)

---

Top Contributors

[![mhrezaei](https://avatars.githubusercontent.com/u/10974828?v=4)](https://github.com/mhrezaei "mhrezaei (10 commits)")

### Embed Badge

![Health badge](/badges/quarkinocom-laravel-translation-manager/health.svg)

```
[![Health](https://phpackages.com/badges/quarkinocom-laravel-translation-manager/health.svg)](https://phpackages.com/packages/quarkinocom-laravel-translation-manager)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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