dkulinich/yii2-texthelpers

Text Helpers

Maintainers

Package info

github.com/dkulinich/yii2-texthelpers

Type:yii2-extension

pkg:composer/dkulinich/yii2-texthelpers

Statistics

Installs: 2 865

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2015-05-08 11:26 UTC

This package is not auto-updated.

Last update: 2026-03-29 01:23:00 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_'); ?>