PHPackages                             oss-tools/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. oss-tools/laravel-langman

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

oss-tools/laravel-langman
=========================

Manage language files with ease.

v3.0.0(10mo ago)13.0k↑1129.4%1MITPHPPHP ^8.2CI passing

Since Apr 2Pushed 10mo agoCompare

[ Source](https://github.com/oss-tools/laravel-langman)[ Packagist](https://packagist.org/packages/oss-tools/laravel-langman)[ Docs](https://github.com/oss-tools/laravel-langman)[ RSS](/packages/oss-tools-laravel-langman/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (7)Versions (23)Used By (1)

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

[](#laravel-langman)

[![Latest Version](https://camo.githubusercontent.com/2b36ec22923b7c51a407fc4c5acf41faf826535cd1bb179a83fe7a93b04309f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f73732d746f6f6c732f6c61726176656c2d6c616e676d616e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/oss-tools/laravel-langman/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Workflow Status](https://camo.githubusercontent.com/bfc7c6ca727d8965868ebf0d0ae02d59155971c26a9d904eaaaa37102a9d7c23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f73732d746f6f6c732f6c61726176656c2d6c616e676d616e2f72756e2d74657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/bfc7c6ca727d8965868ebf0d0ae02d59155971c26a9d904eaaaa37102a9d7c23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f73732d746f6f6c732f6c61726176656c2d6c616e676d616e2f72756e2d74657374733f6c6162656c3d7465737473)[![Check & fix styling](https://github.com/oss-tools/laravel-langman/workflows/Check%20&%20fix%20styling/badge.svg)](https://github.com/oss-tools/laravel-langman/workflows/Check%20&%20fix%20styling/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/9cbf67ed15884c7e3620163ceda6076c85f54e6f57282402f9dac797000a1abb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f73732d746f6f6c732f6c61726176656c2d6c616e676d616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oss-tools/laravel-langman)

### What is Langman?

[](#what-is-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.

Note
----

[](#note)

This package is a detached fork of [themsaid/laravel-langman](https://github.com/themsaid/laravel-langman)

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

[](#installation)

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

```
$ composer require oss-tools/laravel-langman

```

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

```
OSSTools\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="OSSTools\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).

Testing
-------

[](#testing)

```
composer test

```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance54

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 76.9% 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 ~171 days

Recently: every ~336 days

Total

21

Last Release

312d ago

Major Versions

v1.4.1 → v2.0.02023-07-24

v2.0.1 → v3.0.02025-08-26

PHP version history (6 changes)v1.0.0PHP ^7.0

v1.1.0PHP &gt;=5.5.9

v1.2.0PHP ^5.5.9 || ^7.0

v1.4.0PHP ^7.4|^8.0

v2.0.0PHP ^8.0.2

v3.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (193 commits)")[![blessingdube](https://avatars.githubusercontent.com/u/24409039?v=4)](https://github.com/blessingdube "blessingdube (22 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)")[![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)")[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (1 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)")[![m1guelpf](https://avatars.githubusercontent.com/u/23558090?v=4)](https://github.com/m1guelpf "m1guelpf (1 commits)")[![lex111](https://avatars.githubusercontent.com/u/4408379?v=4)](https://github.com/lex111 "lex111 (1 commits)")

---

Tags

laravellocalizationmultilingual

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oss-tools-laravel-langman/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M201](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)

PHPackages © 2026

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