dkulinich / yii2-texthelpers
Text Helpers
Installs: 2 717
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
pkg:composer/dkulinich/yii2-texthelpers
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-12-20 23:35:43 UTC
README
Text Helpers
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dkulinich/yii2-texthelpers "*"
or add
"dkulinich/yii2-texthelpers": "dev-master"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use dkulinich\texthelpers\ExtCoreTextHelper; // Cut string at words <?= ExtCoreTextHelper::cutTextAtWords($text, $max_length = NULL); ?> // Transliterate string <?= ExtCoreTextHelper::transliterate_cyr($text, $replaceWhitespaces = '_', $acceptedSymbols = '0-9a-zA-Z_'); ?>