2017 © Pedro Peláez
 

yii2-component text

PHP class for formatting and editing text

image

irim/text

PHP class for formatting and editing text

  • Monday, April 16, 2018
  • by iRim
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Text

UA: PHP класс для форматування та редагування тексту, (*1)

EN: PHP class for formatting and editing text, (*2)

Встановлення / Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist irim/text "*"

or add, (*5)

"irim/text": "*"

to the require section of your composer.json file., (*6)

Використання / Usage

```php $text = "how use THIS fkn script"; $script = new Text('cp1251'); // change encoding, default UTF-8 $load = $script->text($text) // Uppercase first letter echo $load->ucFirst()->end(); //OR echo Text::ucFirstLetter($text); // RESULT: How use THIS fkn script // to Title echo $load->toTitle()->end(); // RESULT: How Use This Fkn Script // to Upper echo $load->toUpper()->end(); // RESULT: HOW USE THIS FKN SCRIPT // to Lower echo $load->toUpper()->end(); // RESULT: how use this fkn script // the letter "s" to the uppercase echo $load->change('s',Text::toUpper)->end(); // RESULT: how uSe THIS fkn Script //OR // the letter "S" to the lowercase echo $load->change('S',Text::toLower)->end(); // RESULT: how use THIs fkn script ?>, (*7)

The Versions

16/04 2018

dev-master

9999999-dev

PHP class for formatting and editing text

  Sources   Download

MIT

The Requires

 

extension yii2 widget text title change upper rim formated lower