PHPackages                             alleycarvalho/l5-location - 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. [Framework](/categories/framework)
4. /
5. alleycarvalho/l5-location

ActiveLibrary[Framework](/categories/framework)

alleycarvalho/l5-location
=========================

Package designed for the Laravel Framework

v1.0.0(8y ago)015MITPHP

Since Apr 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alleycarvalho/l5-location)[ Packagist](https://packagist.org/packages/alleycarvalho/l5-location)[ RSS](/packages/alleycarvalho-l5-location/feed)WikiDiscussions master Synced yesterday

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

Laravel 5 Location
==================

[](#laravel-5-location)

Introduction
------------

[](#introduction)

The l5-location package allows for a dynamic translation in the Laravel framework, according to the available language definitions.

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

[](#installation)

### Via Composer

[](#via-composer)

Execute the following command to get the latest version of the package:

```
composer require alleycarvalho/l5-location
```

### If the Laravel version **`>=`** 5.5

[](#if-the-laravel-version--55)

- ServiceProvider will be attached automatically.

### Other

[](#other)

- Add service provider to the `'providers'` array in **`config/app.php`**:

```
'providers' => [
    …
    AlleyCarvalho\Location\Providers\LocationServiceProvider::class,
];
```

Configuration
-------------

[](#configuration)

1. Add middleware in **`app/Http/kernel.php`**:

```
protected $middlewareGroups = [
    'web' => [
        …
        \AlleyCarvalho\Location\Http\Middleware\Locale::class,
    ];
];
```

Basic Usage
-----------

[](#basic-usage)

> The translation can be dynamically changed using links referring to the available language in **`resources/lang/`**.

1. Example in **`resources/views/welcome.blade.php`**:

```
{{ trans('auth.failed') }}
Português
Inglês
Francês
```

> If the file package is not available in **`resources/lang/`** or in the package used, the translation will be done according to the configuration of `'fallback_locale'` in **`config/app.php`**

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

2949d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/alleycarvalho-l5-location/health.svg)

```
[![Health](https://phpackages.com/badges/alleycarvalho-l5-location/health.svg)](https://phpackages.com/packages/alleycarvalho-l5-location)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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