PHPackages                             hlacos/route-localization - 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. [API Development](/categories/api)
4. /
5. hlacos/route-localization

ActiveLibrary[API Development](/categories/api)

hlacos/route-localization
=========================

Simple laravel package to handle localized routings.

1.0.0(4y ago)09PHP

Since Apr 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Hlacos/RouteLocalization)[ Packagist](https://packagist.org/packages/hlacos/route-localization)[ RSS](/packages/hlacos-route-localization/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Route Localization plugin
=========================

[](#route-localization-plugin)

This plugin is creating localized route groups. Sets application locale based on url...

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

[](#installation)

### Run composer require

[](#run-composer-require)

> composer require hlacos/route-localization

### Publish configuration

[](#publish-configuration)

> php artisan vendor publish --provider="BAP\\RouteLocalization\\RouteLocalizationServiceProvider" --tag="config"

### Configure package

[](#configure-package)

- **supported-locales:** array of the supported locales
- **use\_prefix\_on\_default\_locale:** set true if you want to use locale segment in url for default language as well
- **redirect\_to\_default\_locale:** if it is true based on previous configuration, it will redirect between prefixed and not prefixed default language url-s. If you use prefixed default url and locale segment is missing (/\* (301)-&gt; /\[default-locale\]/*), or you not using prefix but in the given url is contains locale prefix (/\[default-locale/*\] (301)-&gt; /\*).

### Add package service provider to app config

[](#add-package-service-provider-to-app-config)

> BAP\\RouteLocalization\\RouteLocalizationServiceProvider::class

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

1548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fc02ed73047a5c4baec884c0a87d6f9f50c3cfa9d1d4c8b2718034d75c7e6a4?d=identicon)[Hlacos](/maintainers/Hlacos)

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hlacos-route-localization/health.svg)

```
[![Health](https://phpackages.com/badges/hlacos-route-localization/health.svg)](https://phpackages.com/packages/hlacos-route-localization)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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