PHPackages                             seiger/slang - 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. seiger/slang

ActiveEvolutioncms-module[Localization &amp; i18n](/categories/localization)

seiger/slang
============

Evocms package for work with Multi lang management for Resource and modules in Evolution CMS. Seiger Lang multi language Management Module for Evolution CMS admin panel. The work of the module is based on the use of the standard Laravel functionality for multilingualism.

v1.0.12(3mo ago)92463[7 issues](https://github.com/Seiger/sLang/issues)GPL-3.0PHPPHP ^8.3CI passing

Since Oct 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Seiger/sLang)[ Packagist](https://packagist.org/packages/seiger/slang)[ Fund](https://ko-fi.com/seigerkornelyuk)[ RSS](/packages/seiger-slang/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (14)Used By (0)

sLang for Evolution CMS 3
=========================

[](#slang-for-evolution-cms-3)

[![sLang](https://github.com/Seiger/slang/releases/download/v1.0.0/sLang.jpg)](https://github.com/Seiger/slang/releases/download/v1.0.0/sLang.jpg)[![Latest Stable Version](https://camo.githubusercontent.com/1e2405a8bb9ef04cf3f1ade42112520681ee298abd820c49e9a39df7fe1b0b97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7365696765722f736c616e673f6c6162656c3d76657273696f6e)](https://packagist.org/packages/seiger/slang)[![CMS Evolution](https://camo.githubusercontent.com/7c60e51aeffcac06f808665cb99acb6e3422e0821c3f41397c4cfeceb176ccfd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f434d532d45766f6c7574696f6e2d627269676874677265656e2e737667)](https://github.com/evolution-cms/evolution)[![PHP version](https://camo.githubusercontent.com/fd836b7e2101db1386eb5a3b96c18fe84644758aa36e25606fb60a8d69208264/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7365696765722f736c616e67)](https://camo.githubusercontent.com/fd836b7e2101db1386eb5a3b96c18fe84644758aa36e25606fb60a8d69208264/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7365696765722f736c616e67)[![License](https://camo.githubusercontent.com/7ea009fc1b4aa360454520874ff044a7b2912f1e3403ab349c1c897938c96e25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7365696765722f736c616e67)](https://packagist.org/packages/seiger/slang)[![Issues](https://camo.githubusercontent.com/56093c7ee83a25a9630d5fa87210d65bc8a46397c65d57244e4e6242a0db5736/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f5365696765722f736c616e67)](https://github.com/Seiger/slang/issues)[![Stars](https://camo.githubusercontent.com/41ba20fd1ddc918e4e1c1a86766d4d31d644bcc7ee8eaf71609741049a17988d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f5365696765722f736c616e67)](https://packagist.org/packages/seiger/slang)[![Total Downloads](https://camo.githubusercontent.com/e8d62977a8f587c1963b51fa2c94efd307c13a75d81f98b3ad7db428887fb12f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365696765722f736c616e67)](https://packagist.org/packages/seiger/slang)

**sLang** is a robust multilingual Management Module meticulously crafted for the Evolution CMS admin panel. This dynamic package empowers users to seamlessly implement and manage multilingual tools within the Evolution CMS environment. By utilizing Evolution CMS as its platform, sLang offers a streamlined solution for users seeking efficient and intuitive ways to handle diverse language content, making it an indispensable asset for administrators and developers navigating the intricacies of multilingual website management.

The work of the module is based on the use of the standard Laravel functionality for multilingualism. This foundation ensures a reliable and well-established framework for managing multilingual aspects, enhancing the module's performance and aligning it with industry best practices. With its focus on simplicity and integration, sLang emerges as an essential companion for those aiming to enhance the linguistic versatility of their Evolution CMS-powered websites.

Features
--------

[](#features)

- Automatic Phrase Translation through Google or Custom.
- Automatic search for translations in templates.
- Multilingual tabs in resource.
- Unlimited Translation Language Support.
- Multilingual SEO Support.

[![Multilingual tabs](https://github.com/Seiger/slang/releases/download/v1.0.0/sLang.png)](https://github.com/Seiger/slang/releases/download/v1.0.0/sLang.png)

### Requirements

[](#requirements)

- Evolution CMS **3.3+**
- PHP **8.3+**
- Composer **2.2+**
- One of: **MySQL 8.0+** / **MariaDB 10.5+** / **PostgreSQL 10+** / **SQLite 3.25+**

Install by artisan package installer
------------------------------------

[](#install-by-artisan-package-installer)

Go to You /core/ folder:

```
cd core
```

Run php artisan command

```
php artisan package:installrequire seiger/slang "*"
```

```
php artisan vendor:publish --provider="Seiger\sLang\sLangServiceProvider"
```

Run make DB structure with command:

```
php artisan migrate
```

Usage in blade
--------------

[](#usage-in-blade)

Current language:

```
{{evo()->getConfig('lang')}}
or
{{evo()->getLocale()}}
```

Default language:

```
{{evo()->getConfig('s_lang_default')}}
```

List of frontend languages by comma:

```
{{evo()->getConfig('s_lang_front')}}
```

Translation of phrases:

```
@lang('phrase')
```

Localized versions of your page for Google hreflang

```
{!!sLang::hreflang()!!}
```

Content management
------------------

[](#content-management)

Show current language anywhere with name or shortname

```
{{Str::upper(sLang::langSwitcher()[evo()->getConfig('lang')]['short'])}}
```

Implementing a Language Switcher

```
@foreach(sLang::langSwitcher() as $lang)
    {{Str::upper($lang['ISO 639-1'])}}
@endforeach
```

Working with localized content (Eloquent)
-----------------------------------------

[](#working-with-localized-content-eloquent)

The `Seiger\sLang\Models\sLangContent` model now applies the current locale automatically.

- Fetch translated rows for the active locale: ```
    use Seiger\sLang\Models\sLangContent;

    $items = sLangContent::active()->get(); // locale resolved via evo()->getLocale()
    ```
- Select a specific locale explicitly: ```
    $items = sLangContent::lang('en')->get();
    ```
- Include template variables while keeping the locale filtering: ```
    $items = sLangContent::withTVs(['color', 'price'])->get();
    ```
- Combine multiple helpers: ```
    $items = sLangContent::lang('uk')
        ->withTVs(['color', 'price'])
        ->whereParent($parentId)
        ->active()
        ->get();
    ```
- Legacy helper is preserved for backward compatibility: ```
    $items = sLangContent::langAndTvs('en', ['color', 'price'])->get();
    ```

    > **Deprecated:** `langAndTvs()` is deprecated since `1.0.8` and is scheduled for removal in `v1.2`. Use `lang()->withTVs()` instead.

[See full documentation here](https://seiger.github.io/sLang/)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance67

Regular maintenance activity

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~99 days

Recently: every ~17 days

Total

13

Last Release

115d ago

PHP version history (4 changes)v1.0.0PHP &gt;=8.1

v1.0.2PHP ^8

v1.0.4PHP ^8.1

v1.0.7PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/45df310de1ec27dc7eaf1c505371f79f2f36c2078da13c83acb421509affab84?d=identicon)[seiger](/maintainers/seiger)

---

Top Contributors

[![Seiger](https://avatars.githubusercontent.com/u/12029039?v=4)](https://github.com/Seiger "Seiger (87 commits)")[![chosenman](https://avatars.githubusercontent.com/u/2422444?v=4)](https://github.com/chosenman "chosenman (1 commits)")[![Juniorbuka](https://avatars.githubusercontent.com/u/2193702?v=4)](https://github.com/Juniorbuka "Juniorbuka (1 commits)")

---

Tags

cmsevolution-cmsi18nlanguagemultilanguagephptranslationlanguagelangtranslation-managementevocmsevolution-cms

### Embed Badge

![Health badge](/badges/seiger-slang/health.svg)

```
[![Health](https://phpackages.com/badges/seiger-slang/health.svg)](https://phpackages.com/packages/seiger-slang)
```

###  Alternatives

[aplus/language

Aplus Framework Language Library

2351.7M15](/packages/aplus-language)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[zachleigh/laravel-lang-bundler

Create Laravel translations bundles.

2512.5k](/packages/zachleigh-laravel-lang-bundler)[wcm/wcm-lang-switch

Adds a button to the admin toolbar. This buttons allows users to seamlessly switch between available languages..

212.0k](/packages/wcm-wcm-lang-switch)

PHPackages © 2026

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