PHPackages                             ahmetbarut/laravel-multi-route - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ahmetbarut/laravel-multi-route

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

ahmetbarut/laravel-multi-route
==============================

Laravel' çoklu dil rota kullanımı

1.2(4y ago)7371MITPHP

Since Aug 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ahmetbarut/laravel-mutli-lang-route)[ Packagist](https://packagist.org/packages/ahmetbarut/laravel-multi-route)[ RSS](/packages/ahmetbarut-laravel-multi-route/feed)WikiDiscussions master Synced yesterday

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

Laravel Multi Language Routes
=============================

[](#laravel-multi-language-routes)

It's back with a simpler use than before Multilanguage route package similar to Symfony routes

Setup
-----

[](#setup)

```
    composer require ahmetbarut/laravel-multi-route
```

Features
--------

[](#features)

- Annotation Available
- Multi-language
- Middleware
- Group
- Prefix
- Name

Usage
-----

[](#usage)

### Simple Usage

[](#simple-usage)

If you want, you can specify the language to be used in the array and the index in return. This usage can inflate the route file

```
use AhmetBarut\Multilang\Route;
use App\Http\Controllers\SomeController;

Route::get([
    'en' => '/',
    'tr' => '/tr',
    'es' => '/es'
], function () {
    return 'index';
});

// OR

Route::get([
    'en' => '/',
    'tr' => '/tr',
    'es' => '/es'
], [SomeController::class, 'index']);
```

Usage With Annotations
----------------------

[](#usage-with-annotations)

Using it with annotations makes it look simpler and nicer, and it may be clearer to read which method supports which locales from the annotation.

> It must be used with the `@Route` directive, otherwise it will not discover routes

### example

[](#example)

```
use AhmetBarut\Multilang\Route;
use App\Http\Controllers\SomeController;

/**
 * @Route(en, /en)
 */
Route::get([SomeController::class ,'index']);

// SomeController.php
class SomeController extends Controller
{
    /**
     * @Route(en, /en)
     */
    public function index()
    {
        return 'index';
    }
}
```

Usage With Array Annotations
----------------------------

[](#usage-with-array-annotations)

```
use AhmetBarut\Multilang\Route;
use App\Http\Controllers\SomeController;

Route::get([SomeController::class ,'index']);

// SomeController.php
class SomeController extends Controller
{
    /**
     * @Route([en =>, tr => /tr, es => /es])
     */
    public function index()
    {
        return 'index';
    }
}
```

> You must use the `group` method to use features such as prefix, global middleware.

Usage With Name and Mmiddleware
-------------------------------

[](#usage-with-name-and-mmiddleware)

```
use AhmetBarut\Multilang\Route;
use App\Http\Controllers\SomeController;

Route::group(['middleware' => 'web', 'prefix' => 'hello'], function () {
    Route::get([SomeController::class, 'index'])->name('home');
    Route::get([SomeController::class, 'create'])->name('create');
});

// SomeController.php
class SomeController extends Controller
{
    /**
     * @Route([en => /, tr => /tr, de => /de])
     */
    public function index()
    {
        return 'index';
    }
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

1774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/530008a3a5e32fa689343dc342c6686b50267ba86905e55e5f42ad2d1c8c193c?d=identicon)[ahmetbarut](/maintainers/ahmetbarut)

---

Top Contributors

[![ahmetbarut](https://avatars.githubusercontent.com/u/36641723?v=4)](https://github.com/ahmetbarut "ahmetbarut (24 commits)")

### Embed Badge

![Health badge](/badges/ahmetbarut-laravel-multi-route/health.svg)

```
[![Health](https://phpackages.com/badges/ahmetbarut-laravel-multi-route/health.svg)](https://phpackages.com/packages/ahmetbarut-laravel-multi-route)
```

###  Alternatives

[cmgmyr/phploc

A tool for quickly measuring the size of a PHP project.

266.6M3](/packages/cmgmyr-phploc)[marionnewlevant/snitch

Report when two people might be editing the same element (eg entry, category, or global) or field

3585.1k2](/packages/marionnewlevant-snitch)

PHPackages © 2026

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