Download the PHP package seiger/slang without Composer
On this page you can find all versions of the php package seiger/slang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package slang
Short Description 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.
License GPL-3.0
Informations about the package slang
sLang for Evolution CMS 3
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
- [x] Automatic Phrase Translation through Google or Custom.
- [x] Automatic search for translations in templates.
- [x] Multilingual tabs in resource.
- [x] Unlimited Translation Language Support.
- [x] Multilingual SEO Support.

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
Go to You /core/ folder:
Run php artisan command
Run make DB structure with command:
Local shared demo workflow
This repo is developed inside the shared Extras demo:
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:
Run the sLang smoke check from this repo:
Run the targeted regression test for Dictionary CRUD and Settings state:
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
Current language:
Default language:
List of frontend languages by comma:
Translation of phrases:
Localized versions of your page for Google hreflang
Content management
Show current language anywhere with name or shortname
Implementing a Language Switcher
Working with localized content (Eloquent)
The Seiger\sLang\Models\sLangContent model now applies the current locale automatically.
-
Fetch translated rows for the active locale:
-
Select a specific locale explicitly:
-
Include template variables while keeping the locale filtering:
-
Combine multiple helpers:
-
Legacy helper is preserved for backward compatibility:
Deprecated:
langAndTvs()is deprecated since1.0.8and is scheduled for removal inv1.2. Uselang()->withTVs()instead.
Documentation
- Multilingual dDocs package
- Legacy published documentation