2017 © Pedro Peláez
 

library text-cutter

Utility to cut long text according to specified conditions (to make preview text, for example)

image

serrg/text-cutter

Utility to cut long text according to specified conditions (to make preview text, for example)

  • Sunday, November 22, 2015
  • by SeRRgIO323
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

text-cutter

Small utility to adaptively cut long description for short previews., (*1)

Usage

Firstly, create an instance of TextCutter class and specify cutting method and type of text decoration like this:, (*2)

$textCutter = new TextCutter(TextCutter::METHOD_WHOLE_WORDS, TextCutter::DECORATION_ELLIPSIS);, (*3)

Now you can use $textCutter->cut($text, $length) method to cut your text!, (*4)

The Versions

22/11 2015

dev-master

9999999-dev

Utility to cut long text according to specified conditions (to make preview text, for example)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

text cutter cut text text wrapper