PHPackages                             deepcode-tech/laravel-multi-language - 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. deepcode-tech/laravel-multi-language

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

deepcode-tech/laravel-multi-language
====================================

适用于laravel的多语言支持扩展

v0.0.4(6y ago)011MITHTMLPHP &gt;=7.2.0CI failing

Since Jan 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mumianzi/laravel-multi-language)[ Packagist](https://packagist.org/packages/deepcode-tech/laravel-multi-language)[ Docs](https://github.com/deepcode-tech/laravel-multi-language)[ RSS](/packages/deepcode-tech-laravel-multi-language/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

laravel Multi Language
======================

[](#laravel-multi-language)

安装
--

[](#安装)

```
composer require deepcode-tech/laravel-multi-language

```

发布配置文件
------

[](#发布配置文件)

```
php artisan vendor:publish --provider="Deepcode\MultiLanguage\MultiLanguageServiceProvider"

```

配置
--

[](#配置)

需要调用中间件 `lang:xxx`,`xxx`对应该`config/lang.php`中每类配置

In `config/lang.php`

```
    [
        'enable' => TRUE,
        'middleware'=> 'web',
        'providers' => [
            'default' => [
                'enable' => TRUE,
                'languages' => [
                    'en' => 'English',
                    'zh-CN' => '简体中文',
                ],
                // default locale
                'default' => 'en',
                'is_api' => FALSE,
                'path' => '/',
                'domain' => NULL,
            ],
        ],
    ]

```

### 在laravel-admin中的配置

[](#在laravel-admin中的配置)

Then, add except route to auth

In `config/admin.php`, add `locale` to `auth.excepts`

```
    'auth' => [
        ...
        // The URIs that should be excluded from authorization.
        'excepts' => [
            'auth/login',
            'auth/logout',
            // add this line !
            'locale',
        ],
    ],

```

In `laravel-admin/bootstrap.php`, 添加语言切换菜单:

```
Encore\Admin\Facades\Admin::navbar()->add(new LanguageMenu());

```

登陆界面添加语言选择下拉

复制当前包中 `views/login.blade.php` 到 `resources/views/vendor/admin/` 中

ScreenShots
-----------

[](#screenshots)

[![login](https://user-images.githubusercontent.com/20313390/60640921-ff109480-9e5b-11e9-8ec8-aee897a8bdcb.jpg)](https://user-images.githubusercontent.com/20313390/60640921-ff109480-9e5b-11e9-8ec8-aee897a8bdcb.jpg)[![login1](https://user-images.githubusercontent.com/20313390/60640924-0041c180-9e5c-11e9-8a2d-539d6214d069.jpg)](https://user-images.githubusercontent.com/20313390/60640924-0041c180-9e5c-11e9-8a2d-539d6214d069.jpg)[![language](https://user-images.githubusercontent.com/20313390/60640919-fc15a400-9e5b-11e9-962d-175fb2f24da1.jpg)](https://user-images.githubusercontent.com/20313390/60640919-fc15a400-9e5b-11e9-962d-175fb2f24da1.jpg)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.2% 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 ~21 days

Total

4

Last Release

2302d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14174013?v=4)[mumianzi](/maintainers/mumianzi)[@mumianzi](https://github.com/mumianzi)

---

Top Contributors

[![mumianzi](https://avatars.githubusercontent.com/u/14174013?v=4)](https://github.com/mumianzi "mumianzi (15 commits)")[![kevin1018](https://avatars.githubusercontent.com/u/20313390?v=4)](https://github.com/kevin1018 "kevin1018 (7 commits)")

---

Tags

laravelextension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deepcode-tech-laravel-multi-language/health.svg)

```
[![Health](https://phpackages.com/badges/deepcode-tech-laravel-multi-language/health.svg)](https://phpackages.com/packages/deepcode-tech-laravel-multi-language)
```

###  Alternatives

[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.4k](/packages/typicms-base)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[vemcogroup/laravel-translation

Translation package for Laravel to scan for localisations and up/download to poeditor

136327.1k3](/packages/vemcogroup-laravel-translation)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[api-platform/laravel

API Platform support for Laravel

58170.4k13](/packages/api-platform-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3891.8k](/packages/codewithdennis-larament)

PHPackages © 2026

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