PHPackages                             zoutapps/laravel-lang-vendornamespace - 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. zoutapps/laravel-lang-vendornamespace

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

zoutapps/laravel-lang-vendornamespace
=====================================

Use a translation namespace vor mutliple translation files.

v1.0.4(5y ago)0394MITPHPCI failing

Since Oct 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zoutapps/laravel-lang-vendornamespace)[ Packagist](https://packagist.org/packages/zoutapps/laravel-lang-vendornamespace)[ Docs](https://github.com/zoutapps/laravel-lang-vendornamespace)[ RSS](/packages/zoutapps-laravel-lang-vendornamespace/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

laravel-lang-vendornamespace
============================

[](#laravel-lang-vendornamespace)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cd91ed0837f7099c8b23537b04f9d6ce62c053ac72835f2d30b78e62623d5504/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6f7574617070732f6c61726176656c2d6c616e672d76656e646f726e616d6573706163652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zoutapps/laravel-lang-vendornamespace)[![Total Downloads](https://camo.githubusercontent.com/422ba782083b840f260906b342ee1eace30950e5500748eec9e45d558d882bd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6f7574617070732f6c61726176656c2d6c616e672d76656e646f726e616d6573706163652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zoutapps/laravel-lang-vendornamespace)[![Build Status](https://camo.githubusercontent.com/5bf9272908f66558e0147dae756fc0ec950e34c54db3cd11d2add52ee09dbc48/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a6f7574617070732f6c61726176656c2d6c616e672d76656e646f726e616d6573706163652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zoutapps/laravel-lang-vendornamespace)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This package is aimed at package developers that want multiple packages translations under one namespace.

It's currently not easily possible to gather all your packages translations under one namespace which can bloat up the calls to your translations as well as your *resources/lang/vendor* folder when publishing the files.

For example having packages:

- `zoutapps/awesome-package`
- `zoutapps/nice-package`

you can't register the translations to be able to use them like this:

```
trans('zoutapps::awesome-package')
trans('zoutapps::nice-package')
```

**With this package you now can do this!**

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

[](#installation)

Via Composer

```
$ composer require zoutapps/laravel-lang-vendornamespace
```

Usage
-----

[](#usage)

In your `PackageServiceProvider` instead of using
`$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', '')`
make a call to
`VendorNamespace::loadTranslationsFrom(__DIR__ . '/../resources/lang', '')`in your `boot()` method.

Publishing your translations is the same as before:

```
$this->publishes([
    __DIR__ . '/../resources/lang' => resource_path('lang/vendor/'),
], 'lang');
```

What it does
------------

[](#what-it-does)

All paths you register will be added to your translation namespace.
For this to happen, we wait for the application booted callback and:

- we will create a folder for every namespace
- symlink all your provided translation files in the namespace folder
- add the generated folder to the laravel `TranslationLoader` namespaces

Development
-----------

[](#development)

While your app environment is set to `local` we will always regenerate the links. When your app is in any other environment, we will check for existence of the *lang* folder inside our package and only generate the links if it is not present.

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Oliver Ziegler](https://github.com/zoutapps)
- [All Contributors](../../contributors%5D)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

5

Last Release

2010d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c9a2c2e97d66bd30df7df75183059e218e21ee5d5b80cdcf6542d1a2c60992d?d=identicon)[OliverZiegler](/maintainers/OliverZiegler)

---

Top Contributors

[![OliverZiegler](https://avatars.githubusercontent.com/u/7778510?v=4)](https://github.com/OliverZiegler "OliverZiegler (4 commits)")

---

Tags

laravelpackagedevelopmentlangnamespacevendorbackpacklaravel-lang-vendornamespace

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zoutapps-laravel-lang-vendornamespace/health.svg)

```
[![Health](https://phpackages.com/badges/zoutapps-laravel-lang-vendornamespace/health.svg)](https://phpackages.com/packages/zoutapps-laravel-lang-vendornamespace)
```

###  Alternatives

[mariuzzo/laravel-js-localization

Laravel Localization in JavaScript

6073.9M3](/packages/mariuzzo-laravel-js-localization)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7012.8k](/packages/tehwave-laravel-achievements)[leek/laravel-vendor-cleanup

Laravel commands to detect and clean up unchanged vendor-published files (configs, migrations, views, lang files)

6814.1k](/packages/leek-laravel-vendor-cleanup)[longman/laravel-multilang

Package to integrate multi language (multi locale) functionality in Laravel 5.x

5514.4k1](/packages/longman-laravel-multilang)[erag/laravel-lang-sync-inertia

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

3812.2k](/packages/erag-laravel-lang-sync-inertia)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)

PHPackages © 2026

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