PHPackages                             coopbelvedere/laravel-localized-url - 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. coopbelvedere/laravel-localized-url

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

coopbelvedere/laravel-localized-url
===================================

Simple locale prefixed routes for Laravel

v1.0.1(5y ago)025MITPHPPHP &gt;=7.0

Since Jul 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/CoopBelvedere/laravel-localized-url)[ Packagist](https://packagist.org/packages/coopbelvedere/laravel-localized-url)[ RSS](/packages/coopbelvedere-laravel-localized-url/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel localized URL
=====================

[](#laravel-localized-url)

This is a laravel package to create simple locale prefixed routes and setting that locale in your laravel app. Be careful if you choose to use this package, as no more features will be added. For a more complete solution, please use [Laravel Localization Package](https://github.com/mcamara/laravel-localization).

### Prerequisites

[](#prerequisites)

- PHP 7
- Laravel 5.6

### Configuration

[](#configuration)

```
php artisan vendor:publish --provider="Belvedere\LocalizedUrl\LocalizedUrlServiceProvider"

```

In the `app/config/localized-url.php` file:

Set `default_locale_redirect` to `true` if you want the default language to be removed from the url when accessed directly.

The `locales` key are the locales allowed in your url. If it's an array, it will use those locales, but you can also pass a key from another config file, like `app.locales` if you already have this set in your application.

You can add the locale prefix to your `app/Providers/RouteServiceProvider.php`:

```
use Belvedere\LocalizedUrl\LocalizedUrlFacade as LocalizedUrl;

class RouteServiceProvider extends ServiceProvider
{

...

    protected function mapWebRoutes()
    {
        Route::middleware('web')
             ->namespace($this->namespace)
             ->prefix(LocalizedUrl::urlPrefix())
             ->group(base_path('routes/web.php'));
    }
```

Also add `\Belvedere\LocalizedUrl\Middleware\RedirectLocale::class,` to your `web` stack in `app/Http/Middleware/Kernel.php` for the redirections to work.

*You're all set!*

### This package does not:

[](#this-package-does-not)

- Detect the browser language and keep the language in the session.
- Have any helpers to get the current route in other languages.
- Have any kind of solutions for dynamic content translations.

If you feel that's more what you need, you can consider using the [Laravel Localization Package](https://github.com/mcamara/laravel-localization)instead.

License
-------

[](#license)

[MIT](https://github.com/coopbelvedere/laravel-localized-url/blob/master/LICENSE)

Copyright (c) 2017-present, Coopérative Belvédère Communication

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

2

Last Release

2116d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85fbf9adc2596af575472f146fb6b1d2b62bd351c426fcefa80f014b98d5942d?d=identicon)[yuters](/maintainers/yuters)

![](https://www.gravatar.com/avatar/38163ef16e00e7c079f3b6836967a84b49c190a52ae3862a0aae59cdb0aa22e4?d=identicon)[coopbelvedere](/maintainers/coopbelvedere)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/coopbelvedere-laravel-localized-url/health.svg)

```
[![Health](https://phpackages.com/badges/coopbelvedere-laravel-localized-url/health.svg)](https://phpackages.com/packages/coopbelvedere-laravel-localized-url)
```

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[vluzrmos/language-detector

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

109554.8k3](/packages/vluzrmos-language-detector)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)[highsolutions/laravel-translation-manager

Manage Laravel Translations

1518.8k](/packages/highsolutions-laravel-translation-manager)[amendozaaguiar/laraveles-spanish-for-jetstream

Archivos de traducción al español latinoamericano para Laravel con Jetstream (auth, pagination, passwords, validation + todas las cadenas de Jetstream).

1412.1k](/packages/amendozaaguiar-laraveles-spanish-for-jetstream)

PHPackages © 2026

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