PHPackages                             coding-master15/laravel-langman - 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. coding-master15/laravel-langman

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

coding-master15/laravel-langman
===============================

Manage language files with ease. Forked to support laravel 7

01PHP

Since Jun 1Pushed 2y agoCompare

[ Source](https://github.com/coding-master15/laravel-langman)[ Packagist](https://packagist.org/packages/coding-master15/laravel-langman)[ RSS](/packages/coding-master15-laravel-langman/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Langman
===============

[](#laravel-langman)

Langman is a language files manager in your artisan console, it helps you search, update, add, and remove translation lines with ease. Taking care of a multilingual interface is not a headache anymore.

[![Laravel Langman](https://camo.githubusercontent.com/9da2a9f6357caffe86b14dfba5bff41ca671f03001e559135b131fae33cebfda/687474703a2f2f7331362e706f7374696d672e6f72672f6d67686665327633702f657a6769665f636f6d5f6f7074696d697a652e676966)](https://camo.githubusercontent.com/9da2a9f6357caffe86b14dfba5bff41ca671f03001e559135b131fae33cebfda/687474703a2f2f7331362e706f7374696d672e6f72672f6d67686665327633702f657a6769665f636f6d5f6f7074696d697a652e676966)
[![Build Status](https://camo.githubusercontent.com/b57f17f60d88568674440a6871817f6f1242b4d1eb277c5f66fbefff30245389/68747470733a2f2f7472617669732d63692e6f72672f7468656d736169642f6c61726176656c2d6c616e676d616e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/themsaid/laravel-langman)[![StyleCI](https://camo.githubusercontent.com/347ced9de3a2bfba01a76901a2b75cf6b4739e4b70bf938583fc3022eb03befe/68747470733a2f2f7374796c6563692e696f2f7265706f732f35353038383738342f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/55088784)[![Latest Stable Version](https://camo.githubusercontent.com/24d834f2aa7e421d74051302bba7cfff7f5c633fc8b3f02edfdc97e535b49ad8/68747470733a2f2f706f7365722e707567782e6f72672f7468656d736169642f6c61726176656c2d6c616e676d616e2f762f737461626c652e737667)](https://packagist.org/packages/themsaid/laravel-langman)[![Total Downloads](https://camo.githubusercontent.com/21a1591f112ccef5c04f3869311a6cc17146a522f82fde5c5a1f9ea061109628/68747470733a2f2f706f7365722e707567782e6f72672f7468656d736169642f6c61726176656c2d6c616e676d616e2f642f746f74616c2e737667)](https://packagist.org/packages/themsaid/laravel-langman)[![License](https://camo.githubusercontent.com/ff9b91824c15fff7ba706a624975fb6faca653010be4c9f34b6dd149e0e57f78/68747470733a2f2f706f7365722e707567782e6f72672f7468656d736169642f6c61726176656c2d6c616e676d616e2f6c6963656e73652e737667)](https://packagist.org/packages/themsaid/laravel-langman)

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

[](#installation)

Begin by installing the package through Composer. Run the following command in your terminal:

```
$ composer require themsaid/laravel-langman

```

Once done, add the following line in your providers array of `config/app.php`:

```
Themsaid\Langman\LangmanServiceProvider::class
```

This package has a single configuration option that points to the `resources/lang` directory, if only you need to change the path then publish the config file:

```
php artisan vendor:publish --provider="Themsaid\Langman\LangmanServiceProvider"

```

Usage
-----

[](#usage)

### Showing lines of a translation file

[](#showing-lines-of-a-translation-file)

```
php artisan langman:show users

```

You get:

```
+---------+---------------+-------------+
| key     | en            | nl          |
+---------+---------------+-------------+
| name    | name          | naam        |
| job     | job           | baan        |
+---------+---------------+-------------+

```

---

```
php artisan langman:show users.name

```

Brings only the translation of the `name` key in all languages.

---

```
php artisan langman:show users.name.first

```

Brings the translation of a nested key.

---

```
php artisan langman:show package::users.name

```

Brings the translation of a vendor package language file.

---

```
php artisan langman:show users --lang=en,it

```

Brings the translation of only the "en" and "it" languages.

---

```
php artisan langman:show users.nam -c

```

Brings only the translation lines with keys matching the given key via close match, so searching for `nam` brings values for keys like (`name`, `username`, `branch_name_required`, etc...).

In the table returned by this command, if a translation is missing it'll be marked in red.

### Finding a translation line

[](#finding-a-translation-line)

```
php artisan langman:find 'log in first'

```

You get a table of language lines where any of the values matches the given phrase by close match.

### Searching view files for missing translations

[](#searching-view-files-for-missing-translations)

```
php artisan langman:sync

```

This command will look into all files in `resources/views` and `app` and find all translation keys that are not covered in your translation files, after that it appends those keys to the files with a value equal to an empty string.

### Filling missing translations

[](#filling-missing-translations)

```
php artisan langman:missing

```

It'll collect all the keys that are missing in any of the languages or has values equals to an empty string, prompt asking you to give a translation for each, and finally save the given values to the files.

### Translating a key

[](#translating-a-key)

```
php artisan langman:trans users.name
php artisan langman:trans users.name.first
php artisan langman:trans users.name --lang=en
php artisan langman:trans package::users.name

```

Using this command you may set a language key (plain or nested) for a given group, you may also specify which language you wish to set leaving the other languages as is.

This command will add a new key if not existing, and updates the key if it is already there.

### Removing a key

[](#removing-a-key)

```
php artisan langman:remove users.name
php artisan langman:remove package::users.name

```

It'll remove that key from all language files.

### Renaming a key

[](#renaming-a-key)

```
php artisan langman:rename users.name full_name

```

This will rename `users.name` to be `users.full_name`, the console will output a list of files where the key used to exist.

Notes
-----

[](#notes)

`langman:sync`, `langman:missing`, `langman:trans`, and `langman:remove` will update your language files by writing them completely, meaning that any comments or special styling will be removed, so I recommend you backup your files.

Web interface
-------------

[](#web-interface)

If you want a web interface to manage your language files instead, I recommend [Laravel 5 Translation Manager](https://github.com/barryvdh/laravel-translation-manager)by [Barry vd. Heuvel](https://github.com/barryvdh).

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/dac4f995f13309564cc15b123eae37f2cd20fcceefb080e5ae98f51a38d6e36c?d=identicon)[coding-master15](/maintainers/coding-master15)

---

Top Contributors

[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (193 commits)")[![fergthh](https://avatars.githubusercontent.com/u/9524225?v=4)](https://github.com/fergthh "fergthh (15 commits)")[![stygiansabyss](https://avatars.githubusercontent.com/u/4187442?v=4)](https://github.com/stygiansabyss "stygiansabyss (7 commits)")[![SmarterVision](https://avatars.githubusercontent.com/u/62599311?v=4)](https://github.com/SmarterVision "SmarterVision (4 commits)")[![ahmedash95](https://avatars.githubusercontent.com/u/8272048?v=4)](https://github.com/ahmedash95 "ahmedash95 (4 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (3 commits)")[![joelcuevas](https://avatars.githubusercontent.com/u/275014?v=4)](https://github.com/joelcuevas "joelcuevas (2 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (1 commits)")[![phainv](https://avatars.githubusercontent.com/u/13997282?v=4)](https://github.com/phainv "phainv (1 commits)")[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (1 commits)")[![lex111](https://avatars.githubusercontent.com/u/4408379?v=4)](https://github.com/lex111 "lex111 (1 commits)")[![coding-master15](https://avatars.githubusercontent.com/u/63036996?v=4)](https://github.com/coding-master15 "coding-master15 (1 commits)")[![m1guelpf](https://avatars.githubusercontent.com/u/23558090?v=4)](https://github.com/m1guelpf "m1guelpf (1 commits)")

### Embed Badge

![Health badge](/badges/coding-master15-laravel-langman/health.svg)

```
[![Health](https://phpackages.com/badges/coding-master15-laravel-langman/health.svg)](https://phpackages.com/packages/coding-master15-laravel-langman)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.0k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M490](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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