Login   Register  
PHP Classes

Text Fit: Shorten text to fit within a limited length

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Tony
Name: Tony <contact>
Classes: 4 packages by
Country: Australia Australia
Age: ???
All time rank: 123819 in Australia Australia
Week rank: 454 Up6 in Australia Australia Up
Innovation award
Innovation award
Nominee: 2x

  Detailed description   Download Download .zip .tar.gz  
This class can shorten text to fit within a limited length.

It can shorten a given text string by truncating text that exceeds a given length.

The class can also shorten file names by limiting them to a given length but preserving the original file name extension.

It may also fit text into columns of table cells by either shortening or wrapping the text in the column.

  Classes of Tony  >  Text Fit  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Text Fit
Base name: text-fit
Description: Shorten text to fit within a limited length
Version: 1.1.3
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 413 users
All time rank: 5758
Week users: 0 users
Week rank: 1745 Equal
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file TextFit-examples.png Screen Output examples

  Innovation Award  
PHP Programming Innovation award nominee
December 2012
Number 3

Prize: One downloadable copy of PhpED Professional
Sometimes it is necessary to limit the length of text to be displayed in certain circumstances. That is the case of text in e-mail messages or file names.

This class provides a solution to truncate text in a way that it does not cut words in the middle.

It can also shorten file names in a way that they do not exceed a certain limit, but still keep the file extension at the end of the file name.

Manuel Lemos

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file TextFit.class.php Class TextFit class
Accessible without login Plain text file examples.php Example Example script
Accessible without login Plain text file TextFit.doc.txt Doc. Usage information
Accessible without login Plain text file GPL.txt Lic. License information

Download Download all files: text-fit.tar.gz text-fit.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.