dkulinich / yii2-texthelpers
Text Helpers
Installs: 2 613
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-09-13 22:31:39 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_'); ?>