PHPackages                             atpro/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. atpro/translator

ActiveLibrary

atpro/translator
================

Atpro translator allows you to translate lang files into several languages and thus save time in managing the internationalization of your laravel projects

v2.0.2(3y ago)1198MITPHP

Since Jun 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/as199/atpro-translator)[ Packagist](https://packagist.org/packages/atpro/translator)[ RSS](/packages/atpro-translator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

atpro-translator laravel Package
================================

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

[![Build Status](https://camo.githubusercontent.com/c59043e0b28eab034f19dabc49c9222c43e3fbe5e0c6bc2837a5c0086132a211/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f6672616d65776f726b2e737667)](https://travis-ci.org/atpro/translator)[![Latest Stable Version](https://camo.githubusercontent.com/ac80245907ab5462f12c09d2f71b92f1f9e8aacadaed1b864f3f196396d10573/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617470726f2f7472616e736c61746f72)](https://packagist.org/packages/atpro/translator)[![License](https://camo.githubusercontent.com/9d8f797ed52b3a7c7a3c242202494a9624dbfbc2cd7c16d78848005cca73d111/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f617470726f2f7472616e736c61746f72)](https://packagist.org/packages/atpro/translator)

Introduction
------------

[](#introduction)

**Atpro-translator** is a package that allows you to easily manage the internationalization in your applications.

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

[](#installation)

To get started with Atpro-translator, use Composer to add the package to your project's dependencies:

```
    composer require atpro/translator
```

Configuration
-------------

[](#configuration)

After installing the `Atpro-translator` library, register the `\Atpro\Translator\AtproServiceProvider::class` in your `config/app.php` configuration file:

```
'providers' => [

        \Atpro\Translator\AtproServiceProvider::class,
    ],
```

Also, register the middleware in web middleware groups by simply adding the middleware class :

```
AtproTranslateMiddleware::class,
```

into the `$middlewareGroups` of your `app/Http/Kernel.php` file.

And then run :

```
php artisan vendor:publish
```

publish `AtproServiceProvider`.

Usage
-----

[](#usage)

**To translate your lang files into other languages**:

Run the command in terminal

```
    php artisan atpro:translate
```

**Example**:

1. php artisan atpro:translate and click enter
2. --&gt; Your started language ? `en`
3. --&gt; Your translated list language seperated with commas (,) example: fr,es ... ? `fr,it,es`
4. Click enter and wait for translated files

It will generate translated files in respective folder `fr,it,es`

**OPTIONAL OPTIONS**:

OptionsDescriptionExamples`--e`Generate files for all languages without anyphp artisan atpro:translate --e='user.php,test.php'`--f`Generate files for specific pathphp artisan atpro:translate --f='user.php,test.php'**B. To generate views for translation**:

Run the command in terminal

```
    php artisan atpro:generate-view-translate
```

**Example**:

1. php artisan atpro:generate-view-translate and click enter
2. --&gt; Yours languages seperated with commas (,) example: fr,es ... ? `fr,it,es`
3. Click enter and wait for generate views translate

It will generate a middleware, in controller, a routes file and a component containing the different options according to the chosen languages

You will also have a new component ` `. You can use it in views.

**Note**: Make sure that the started language folder exists in your language folder and contains files you want to translate.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.8% 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 ~18 days

Recently: every ~45 days

Total

13

Last Release

1214d ago

Major Versions

v1.0.5 → v2.x-dev2022-06-27

v1.0.9 → v2.0.02022-07-25

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/72c00ff77ff2a661e16cffbdf5e50a87d62dd447b8a6dc34fb5eedee38bc5459?d=identicon)[Ngouabira](/maintainers/Ngouabira)

---

Top Contributors

[![Assane17](https://avatars.githubusercontent.com/u/104983432?v=4)](https://github.com/Assane17 "Assane17 (25 commits)")[![as199](https://avatars.githubusercontent.com/u/57167524?v=4)](https://github.com/as199 "as199 (6 commits)")[![Ngouabira](https://avatars.githubusercontent.com/u/31518046?v=4)](https://github.com/Ngouabira "Ngouabira (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atpro-translator/health.svg)

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

###  Alternatives

[tanmuhittin/laravel-google-translate

Translate translation files to other languages using google translate api

4312.2M11](/packages/tanmuhittin-laravel-google-translate)[devaslanphp/auto-translate

Auto generate translation JSON files

6623.1k](/packages/devaslanphp-auto-translate)[web64/laravel-nlp

Laravel package for accessing NLP tools

5711.2k](/packages/web64-laravel-nlp)[hpolthof/laravel-translations-db

A database translations implementation for Laravel 5.

545.8k](/packages/hpolthof-laravel-translations-db)[enupal/translate

Translate your website templates and plugins into multiple languages. Bulk translation with Google Translate or Yandex.

1172.1k](/packages/enupal-translate)[mmoreram/translation-server

PHP translation server

233.7k2](/packages/mmoreram-translation-server)

PHPackages © 2026

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