PHPackages                             novasa/laravel-language-center - 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. novasa/laravel-language-center

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

novasa/laravel-language-center
==============================

Language Center for Laravel.

v2.2.2(3y ago)019.1kMITPHP

Since Mar 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Novasa/laravel-language-center)[ Packagist](https://packagist.org/packages/novasa/laravel-language-center)[ RSS](/packages/novasa-laravel-language-center/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (0)

Laravel Language Center
=======================

[](#laravel-language-center)

Language Center for Laravel.

> This requires access to Novasa's Language Center.

Install
=======

[](#install)

Run `composer require novasa/laravel-language-center:~2.0`.

In `config/app.php` replace `Illuminate\Translation\TranslationServiceProvider::class,` with `Novasa\LaravelLanguageCenter\TranslationServiceProvider::class,` in the `providers`-section.

Then add the the following environments to your application:

```
LANGUAGE_CENTER_URL=The url for API v1 (with ending slash) (required)
LANGUAGE_CENTER_USERNAME=Language Center username for Basic Auth (required)
LANGUAGE_CENTER_PASSWORD=Language Center password for Basic Auth (required)
LANGUAGE_CENTER_PLATFORM=The default platform to use. (default 'web')
LANGUAGE_CENTER_UPDATE_AFTER=The amount of seconds before updating the LanguageCenter data. (default '60' seconds)

```

For publishing the configuration file run:

```
php artisan vendor:publish --provider="Novasa\LaravelLanguageCenter\TranslationServiceProvider" --tag="config"

```

Usage
=====

[](#usage)

You can use the Laravel standard `trans`-function.

```
trans('header.login');

```

> will return the value of the string id `header.login`.
> However if the string id for `header.login` does not exists it will return `header.login`.

```
trans('header.welcome_back', [
  'username' => 'Mark',
])

```

> Will return the value of the string id `header.welcome_back`, but will replace `:username` with `Mark` in the translation. However if the string id for `header.welcome_back` does not exists it will return `header.welcome_back`.

```
trans([
  'key' => 'header.hello_world',
  'string' => 'Hello World!',
])

```

> Will return the value of the string id `header.hello_world`. However if the string id for `header.hello_world` does not exists it will return `Hello World!`.

```
trans([
  'key' => 'header.hello_user',
  'string' => 'Hello :username!',
], [
  'username' => 'Mark',
])

```

> Will return the value of the string id `header.hello_user`, but will replace `:username` with `Mark` in the translation. However if the string id for `header.hello_user` does not exists it will return `Hello Mark!`.

```
trans([
  'key' => 'header.download',
  'string' => 'You should download our iOS app!',
  'platform' => 'ios',
])

```

> Will return the value of the string id `header.download`, but for the platorm `ios`. However if the string id for `header.download` does not exists it will return `You should download our iOS app!`.

```
trans([
  'key' => 'footer.copyright',
  'string' => 'Copyright 2016 Novasa',
  'comment' => 'A comment that you would like to show at the Language Center.',
])

```

> Will return the value of the string id `footer.copyright`. However if the string id for `footer.copyright` does not exists it will return `Copyright 2016 Novasa`. This will also add a comment to the Language Center.

#### Note

[](#note)

If a translation does not exists it will automatically be created at the Language Center.

Also please note that the `locale` and `local_fallback` in the Laravel configurations are overwritten by the settings from the Language Center.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 98% 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 ~184 days

Recently: every ~303 days

Total

14

Last Release

1363d ago

Major Versions

v1.0.4 → v2.0.02017-10-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d02cdb7563da13d24667b14025c67a4e2fc52a104becc8bfe384da21d056768?d=identicon)[marktopper](/maintainers/marktopper)

---

Top Contributors

[![marktopper](https://avatars.githubusercontent.com/u/2232539?v=4)](https://github.com/marktopper "marktopper (48 commits)")[![kasperhartwich](https://avatars.githubusercontent.com/u/616231?v=4)](https://github.com/kasperhartwich "kasperhartwich (1 commits)")

---

Tags

laravellanguagecenternovasa

### Embed Badge

![Health badge](/badges/novasa-laravel-language-center/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M923](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.6M217](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

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

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

136319.2k3](/packages/vemcogroup-laravel-translation)[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)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.5k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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