PHPackages                             madbox-99/laravel-locale-switcher - 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. madbox-99/laravel-locale-switcher

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

madbox-99/laravel-locale-switcher
=================================

Simple locale switcher for Laravel applications using cookies.

v1.1.1(3mo ago)01.1kMITPHPPHP ^8.2

Since Mar 23Pushed 3mo agoCompare

[ Source](https://github.com/MadBox-99/laravel-locale-switcher)[ Packagist](https://packagist.org/packages/madbox-99/laravel-locale-switcher)[ RSS](/packages/madbox-99-laravel-locale-switcher/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Laravel Locale Switcher
=======================

[](#laravel-locale-switcher)

A lightweight Laravel package for switching locales in applications using cookies or URL prefixes.

Features
--------

[](#features)

- Switch locales from routes or middleware
- Support cookie-based locale persistence
- Support URL-prefix-based locale handling
- Blade components for locale dropdowns and hreflang tags
- Easy integration with Laravel applications

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

[](#installation)

Install via Composer:

```
composer require madbox-99/laravel-locale-switcher
```

Publish the package configuration if needed:

```
php artisan vendor:publish --provider="MadBox\\LocaleSwitcher\\LocaleSwitcherServiceProvider"
```

Usage
-----

[](#usage)

The package provides helpers and middleware to set the current locale, switch between languages, and expose locale-aware routes and views.

Testing
-------

[](#testing)

Run the test suite with:

```
./vendor/bin/pest
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance81

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

99d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72586295?v=4)[Zoltán Tamás Szabó](/maintainers/MadBox-99)[@MadBox-99](https://github.com/MadBox-99)

---

Top Contributors

[![MadBox-99](https://avatars.githubusercontent.com/u/72586295?v=4)](https://github.com/MadBox-99 "MadBox-99 (6 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/madbox-99-laravel-locale-switcher/health.svg)

```
[![Health](https://phpackages.com/badges/madbox-99-laravel-locale-switcher/health.svg)](https://phpackages.com/packages/madbox-99-laravel-locale-switcher)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k1](/packages/mike-bronner-laravel-model-caching)[illuminate/auth

The Illuminate Auth package.

9328.5M1.3k](/packages/illuminate-auth)[illuminate/routing

The Illuminate Routing package.

1239.4M3.5k](/packages/illuminate-routing)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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