PHPackages                             phyconlabs/laravel-languages - 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. phyconlabs/laravel-languages

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

phyconlabs/laravel-languages
============================

String translations for Laravel

1.0(6y ago)02.0k↓100%MITPHPCI failing

Since Apr 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/PhyconLabs/laravel-languages)[ Packagist](https://packagist.org/packages/phyconlabs/laravel-languages)[ Docs](https://github.com/PhyconLabs/laravel-i18n)[ RSS](/packages/phyconlabs-laravel-languages/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

laravel-languages
=================

[](#laravel-languages)

This package combines functionality from [Waavi/translation](https://github.com/Waavi/translation) and [thiagocordeiro/laravel-translator](https://github.com/thiagocordeiro/laravel-translator).

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

[](#installation)

1. Require through composer

```
composer require phyconlabs/laravel-languages

```

2. Publish vendor assets and configuration file

```
php artisan vendor:publish --provider="Phycon\Translations\TranslationServiceProvider"

```

3. Replace Laravel default Translation service provider in `config/app.php`

```
Illuminate\Translation\TranslationServiceProvider::class

```

with:

```
\Phycon\Translations\TranslationServiceProvider::class

```

4. Migrate the translation and locale tables

```
php artisan migrate

```

5. Include `/resources/js/translations.js` in your admin section/layout.

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

[](#configuration)

1. Set `available_locales` in `/config/translator.php`
2. Set `layout` for translations UI to extend in `/config/translator.php`
3. Insert available locales in `translator_languages` table

Usage
-----

[](#usage)

### Routes

[](#routes)

In your `web.php` route file add `locale` middleware for routes that need multilingual content and locale in the url

```
$localizer = \App::make( \Waavi\Translation\UriLocalizer::class );

Route::group( [ 'prefix' => $localizer->localeFromRequest(), 'middleware' => 'locale' ], function () {
    Route::get( 'test', 'TestController@index' )->name( 'test' );
});

```

### Scan project files for translation strings

[](#scan-project-files-for-translation-strings)

Use artisan command `php artisan translator:update`. This scans the `app` and `views` directories for usages of `__( 'text' )` function and populates the `translator_translations` table.

### Manage translations

[](#manage-translations)

String translations can be edited at `/translations` route, any changes are saved on field focusOut event.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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

Unknown

Total

1

Last Release

2217d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77888d445e7a90fe2f55572b4abf3218623af48bb9dd48a94c0950f3c14549d5?d=identicon)[phyconhq](/maintainers/phyconhq)

---

Top Contributors

[![mvilskersts](https://avatars.githubusercontent.com/u/17120414?v=4)](https://github.com/mvilskersts "mvilskersts (11 commits)")[![wonderne](https://avatars.githubusercontent.com/u/8013557?v=4)](https://github.com/wonderne "wonderne (3 commits)")

---

Tags

laraveli18ntranslationsmultilingual

### Embed Badge

![Health badge](/badges/phyconlabs-laravel-languages/health.svg)

```
[![Health](https://phpackages.com/badges/phyconlabs-laravel-languages/health.svg)](https://phpackages.com/packages/phyconlabs-laravel-languages)
```

###  Alternatives

[outhebox/laravel-translations

Manage your Laravel translations with a beautiful UI. Add, edit, delete, import, and export translations with ease.

80687.6k](/packages/outhebox-laravel-translations)

PHPackages © 2026

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