PHPackages                             arispati/app-locale - 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. arispati/app-locale

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

arispati/app-locale
===================

Localization for Laravel and Lumen Framework

v0.1.0(4y ago)122.6k↓91.7%MITPHPPHP &gt;=7.2

Since Aug 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/arispati/app-locale)[ Packagist](https://packagist.org/packages/arispati/app-locale)[ Docs](https://github.com/arispati/app-locale)[ RSS](/packages/arispati-app-locale/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

App Locale
==========

[](#app-locale)

Localization for Laravel and Lumen Framework

Description
-----------

[](#description)

This package will set the locale of the application by the request that contains the `App-Locale` attribute in the header

How to Install
--------------

[](#how-to-install)

- Install with composer

```
composer require arispati/app-locale
```

### Laravel

[](#laravel)

- Register the middleware

```
// app/Http/Kernel.php
protected $middleware = [
    // ...
    \Arispati\AppLocale\Middleware\AppLocale::class
];
```

### Lumen

[](#lumen)

- Register the middleware

```
// bootstrap/app.php
$app->middleware([
    \Arispati\AppLocale\Middleware\AppLocale::class
]);
```

- if you want to use `Facade`

```
// bootstrap/app.php

// Enabled Facade
$app->withFacades(true, [
    '\Arispati\AppLocale\Facades\AppLocale' => 'AppLocale'
]);

// Register service provider
$app->register(\Arispati\AppLocale\ServiceProvider::class);
```

Available Method
----------------

[](#available-method)

- Set app locale

```
AppLocale::setLocale('id'); // set app locale to 'id' (Bahasa Indonesia)
```

- Get app locale

```
AppLocale::getLocale();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Unknown

Total

1

Last Release

1792d ago

### Community

Maintainers

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

---

Tags

laravellocalizationlumenlaravellocalizationlumenlocale

### Embed Badge

![Health badge](/badges/arispati-app-locale/health.svg)

```
[![Health](https://phpackages.com/badges/arispati-app-locale/health.svg)](https://phpackages.com/packages/arispati-app-locale)
```

###  Alternatives

[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

544664.5k4](/packages/codezero-laravel-localized-routes)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

111573.0k3](/packages/vluzrmos-language-detector)[longman/laravel-multilang

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

5414.6k1](/packages/longman-laravel-multilang)[awes-io/localization-helper

Package for convenient work with Laravel's localization features

3527.1k4](/packages/awes-io-localization-helper)[cariboufute/locale-route

A testable route package with localization for Laravel 5 to 12

207.0k](/packages/cariboufute-locale-route)[niels-numbers/laravel-localizer

Detects the user’s preferred language and redirects to the matching localized URL.

183.4k](/packages/niels-numbers-laravel-localizer)

PHPackages © 2026

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