vicos / yii2-transliterate-behavior
The transliterate text for the Yii2 framework
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: >=2.0.4
This package is auto-updated.
Last update: 2025-03-22 18:20:20 UTC
README
Автоматически выполняет транслитерацию текста
Установка
Выполнить команду в консоли
composer require --prefer-dist sergks/yii2-transliterate-behavior "@dev"
или добавить в composer.json
"require": { "vicos/yii2-transliterate-behavior": "@dev" },
Использование
use vicos\transliterate\TransliterateBehavior; public function behaviors() { return [ [ 'class' => TransliterateBehavior::className(), 'fromAttribute' => 'title', 'toAttribute' => 'alias', ] ]; }