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

ActiveEvolution-cms-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.14(1mo ago)103485GPL-3.0PHPPHP ^8.3CI passing

Since Oct 18Pushed 1w 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 2.x Synced today

READMEChangelog (10)Dependencies (2)Versions (18)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
```

Local shared demo workflow
--------------------------

[](#local-shared-demo-workflow)

This repo is developed inside the shared Extras demo:

```
cd /Users/dmi3yy/PhpstormProjects/Extras/sArticles/demo/core
composer update seiger/slang --with-all-dependencies
php artisan package:discover
php artisan migrate --force
```

The shared demo also loads `sArticles`, `dmi3yy/dissues`, `sSeo`, `evo-ui`, `dTui-editor`, and `eTinyMCE`. Before writing to dIssues task data, create a DB backup:

```
php /Users/dmi3yy/PhpstormProjects/MiddleDuck/skills/dissues-demo-ops/scripts/dissues-demo.php backup
```

Run the sLang smoke check from this repo:

```
php tests/demo-smoke.php --url=http://127.0.0.1:8791
```

Run the targeted regression test for Dictionary CRUD and Settings state:

```
php tests/regression/slang-demo-regression.php
```

The manager module shell now uses evo-ui for Dictionary and Settings. Resource edit multilingual tabs remain legacy-compatible and keep the existing Evolution mutate form contract.

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.

Documentation
-------------

[](#documentation)

- [Multilingual dDocs package](docs/README.md)
- [Legacy published documentation](https://seiger.github.io/sLang/)

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance94

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 82% 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 ~81 days

Recently: every ~28 days

Total

17

Last Release

51d ago

Major Versions

1.x-dev → 2.x-dev2026-05-14

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

v1.0.2PHP ^8

v1.0.4PHP ^8.1

v1.0.7PHP ^8.3

2.x-devPHP ^8.4

### 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 (100 commits)")[![MiddleSokilAI](https://avatars.githubusercontent.com/u/281633645?v=4)](https://github.com/MiddleSokilAI "MiddleSokilAI (10 commits)")[![Dmi3yy](https://avatars.githubusercontent.com/u/669491?v=4)](https://github.com/Dmi3yy "Dmi3yy (5 commits)")[![another-brick-in-the-wall](https://avatars.githubusercontent.com/u/205679453?v=4)](https://github.com/another-brick-in-the-wall "another-brick-in-the-wall (4 commits)")[![Juniorbuka](https://avatars.githubusercontent.com/u/2193702?v=4)](https://github.com/Juniorbuka "Juniorbuka (1 commits)")[![chosenman](https://avatars.githubusercontent.com/u/2422444?v=4)](https://github.com/chosenman "chosenman (1 commits)")[![middleDuckAi](https://avatars.githubusercontent.com/u/269711613?v=4)](https://github.com/middleDuckAi "middleDuckAi (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

2391.7M15](/packages/aplus-language)[inpsyde/multilingual-press

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

2414.0k1](/packages/inpsyde-multilingual-press)

PHPackages © 2026

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