My new class is about hyperlink and shorten URLs. You can see the class http://www.phpclasses.org/browse/package/6114.html.
This class can be used to convert URLs in text to links using Bit.ly .
It can parse a text to find HTTP, HTTPS, FTP and FTPS links.
The class sends requests Bit.ly Web services API to convert the URLs that it finds into HTML links using the Bit.ly URLs.