PHPackages                             h1ch4m/lang-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. [Localization &amp; i18n](/categories/localization)
4. /
5. h1ch4m/lang-manager

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

h1ch4m/lang-manager
===================

laravel language helper

v1.3.0(1y ago)1753MITPHP

Since Oct 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Hicham-1/lang-manager)[ Packagist](https://packagist.org/packages/h1ch4m/lang-manager)[ RSS](/packages/h1ch4m-lang-manager/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (8)Used By (0)

Laravel Language Manager
========================

[](#laravel-language-manager)

[![Latest Version](https://camo.githubusercontent.com/f550a4c5efd8055a7e65e4c6a34b568d27acd7d1b9928d43e6e712c06123e42b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68316368346d2f6c616e672d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/h1ch4m/lang-manager)[![Total Downloads](https://camo.githubusercontent.com/35ec71ba94d65833cec98e371d8c83d8a043bb80ceeaf5de2a1278e5782b9e55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68316368346d2f6c616e672d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/h1ch4m/lang-manager)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A Laravel package for create language keys on your lang file from a given path (like views/).

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

[](#installation)

You can install the package via Composer:

```
composer require h1ch4m/lang-manager
```

Service Provider
----------------

[](#service-provider)

After installing the package, you need to register the service provider. Add the service provider to your `config/app.php` file:

```
'providers' => [
    // Other Service Providers...

    H1ch4m\LangManager\LangManagerServiceProvider::class,
],
```

Usage
-----

[](#usage)

Your sentence should be inside the function `__()` and use single-quotes `'` like:

```
{{ __('Your sentence here') }}
{{ __('Your sentence :here', ['here' => 'sentence value']) }}
```

`⚠️ Please commit your changes before run the command, just to be able to reset your work if you don't like the command result.`

To run the command:

```
php artisan lang-manager:start
```

It will ask you

```
Enter your directory (default is resources/views):
```

if your directory is `resources/views` click enter, other ways enter your path that you want to create keys for it. Than it will ask you for the language:

```
Enter your files language (default is en):
```

If your default language is en than click enter, other ways enter your language and hit enter.
You will notice that new files will be created on the lang folder and the sentence on `__()` will be changed to the keys on the lang files.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance44

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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 ~38 days

Recently: every ~57 days

Total

7

Last Release

438d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38109147?v=4)[M1](/maintainers/h1ch4m)[@H1ch4m](https://github.com/H1ch4m)

---

Top Contributors

[![Hicham-1](https://avatars.githubusercontent.com/u/52961783?v=4)](https://github.com/Hicham-1 "Hicham-1 (47 commits)")

### Embed Badge

![Health badge](/badges/h1ch4m-lang-manager/health.svg)

```
[![Health](https://phpackages.com/badges/h1ch4m-lang-manager/health.svg)](https://phpackages.com/packages/h1ch4m-lang-manager)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[symfony/ux-translator

Exposes Symfony Translations directly to JavaScript.

26779.7k9](/packages/symfony-ux-translator)[mageplaza/magento-2-italian-language-pack

Italian language package for Magento 2

161.4M](/packages/mageplaza-magento-2-italian-language-pack)[renatomarinho/laravel-multi-language

Laravel Multi Language

235.1k](/packages/renatomarinho-laravel-multi-language)

PHPackages © 2026

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