PHPackages                             i5z1a/super-language-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. i5z1a/super-language-switcher

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

i5z1a/super-language-switcher
=============================

A package to handle super language switching in Laravel

05PHP

Since Jul 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/i5z1a/super-language-switcher)[ Packagist](https://packagist.org/packages/i5z1a/super-language-switcher)[ RSS](/packages/i5z1a-super-language-switcher/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![445](https://private-user-images.githubusercontent.com/169618095/346246448-405166e5-de98-4745-9600-8bc1b9bf5d73.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI4ODg2NDEsIm5iZiI6MTc4Mjg4ODM0MSwicGF0aCI6Ii8xNjk2MTgwOTUvMzQ2MjQ2NDQ4LTQwNTE2NmU1LWRlOTgtNDc0NS05NjAwLThiYzFiOWJmNWQ3My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMVQwNjQ1NDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZDU1MzlmYWI0NWM4OTFlMDZhNmRlZWVlYTk1MjgxMTc2N2Q2ZjQ1ZWI0MTVkMzIxZGJiOGY2NTFjMGY2ODY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.hEMap90dyoJTVzqZb3WzIcY3Ult9B-et_im27N0iTls)](https://private-user-images.githubusercontent.com/169618095/346246448-405166e5-de98-4745-9600-8bc1b9bf5d73.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI4ODg2NDEsIm5iZiI6MTc4Mjg4ODM0MSwicGF0aCI6Ii8xNjk2MTgwOTUvMzQ2MjQ2NDQ4LTQwNTE2NmU1LWRlOTgtNDc0NS05NjAwLThiYzFiOWJmNWQ3My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMVQwNjQ1NDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZDU1MzlmYWI0NWM4OTFlMDZhNmRlZWVlYTk1MjgxMTc2N2Q2ZjQ1ZWI0MTVkMzIxZGJiOGY2NTFjMGY2ODY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.hEMap90dyoJTVzqZb3WzIcY3Ult9B-et_im27N0iTls)

Super Language Switcher (SLS) Package for Laravel
=================================================

[](#super-language-switcher-sls-package-for-laravel)

Super Language Switcher (SLS) integrates multilingual support into Laravel effortlessly. It adapts website layouts for languages like Arabic and English, switching between RTL and LTR seamlessly.

---

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

[](#installation)

1. **Install via Composer**

    You can install the package via Composer. Run this command in your terminal from your project directory:

    ```
    composer require i5z1a/super-language-switcher:dev-main
    ```
2. **Register Service Provider**

    Add the Super Language Switcher service provider to your `config/app.php` file:

    ```
    // config/app.php

    'providers' => [
        // Other service providers...
        I5z1a\SuperLanguageSwitcher\Providers\SuperLanguageSwitcherServiceProvider::class,
    ];
    ```

    **Note:** This step is required for all Laravel versions except Laravel 11, as Laravel 11 no longer requires manual service provider registration.
3. **Publish Configuration (Optional)**

    Optionally, publish the configuration file if you need to customize any settings:

    ```
    php artisan vendor:publish --provider="I5z1a\SuperLanguageSwitcher\Providers\SuperLanguageSwitcherServiceProvider"
    ```
4. **Usage**

    Use the provided artisan command to install language files:

    ```
    php artisan language-switcher:install
    ```

##### ✅ Now the Super Language Switcher (SLS) package is ready for your project!

[](#-now-the-super-language-switcher-sls-package-is-ready-for-your-project)

---

Frontend
--------

[](#frontend)

1. **Language selection list**

    Add this list to the header or any page.

    ```

         العربية
         English

    ```

    Include JS code in the header of the page or any page (💡) Tip: Include JS code in a place where all pages can access it to include it, for example the site header.

    ```

    ```
2. **Translations**

    To add translations you can go to the path (public\\lang) and view the language files in JSON format, and the (SLS) package adds Arabic and English by default.

    You can also easily add different languages ​​later. Through these language files you can add translations to your page content, for example:

    ```
    {
       "welcome_message": "اهلا بموقعنا",
       "about_us_link": "عنا",
       "contact_us_link": "تواصل",
     }
    ```

    And then the English file as well:

    ```
     {
         "welcome_message": "Welcome to our site!",
         "about_us_link": "About Us",
         "contact_us_link": "Contact Us",
     }
    ```

    Note that we used the same keys in all language files to display them easily in the front-end

    As shown here in the example:

    ```

    ```

    With `data-translate` we can enter the translation key to display the text from JSON files.

##### ✅ Now your Laravel project supports multiple languages ​​easily and without any routing.

[](#-now-your-laravel-project-supports-multiple-languages-easily-and-without-any-routing)

---

Made with ❤ by [@i5z1a](https://github.com/i5z1a/) to make developers' lives easier | All rights reserved.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/406a097d33b55ebe8af4de049138a105a8269faa30cf98e8a5fee18f4408176b?d=identicon)[i5z1a](/maintainers/i5z1a)

---

Top Contributors

[![i5li](https://avatars.githubusercontent.com/u/206923457?v=4)](https://github.com/i5li "i5li (17 commits)")

### Embed Badge

![Health badge](/badges/i5z1a-super-language-switcher/health.svg)

```
[![Health](https://phpackages.com/badges/i5z1a-super-language-switcher/health.svg)](https://phpackages.com/packages/i5z1a-super-language-switcher)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[renatomarinho/laravel-multi-language

Laravel Multi Language

235.1k](/packages/renatomarinho-laravel-multi-language)

PHPackages © 2026

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