This class can be used to generate short URLs and use other services of the bit.ly site.
It can send HTTP requests to the bit.ly site Web services API server to perform several operations with URLs.
Currently it can create short versions of a given URL, get the original URL of a short URL, get information, referrer and traffic statistics of a short URL.
Create short URLs storing them in a MySQL database
This class can be used to create short URLs storing them in a MySQL database.
It can create a short key for an URL and store the key and URL association in a MySQL database table.
The class can also lookup for a given short URL key and redirect to the associated URL using HTTP redirection headers or HTML with JavaScript to redirect to the expanded URL page.
It can use mod_rewrite to redirect the access to the short URL to a script that uses this class to do the actual redirection.
This class can be used to shorten and expand URLs using different services.
It can send HTTP requests to the Web services API servers of different URL shortening services to perform either shortening (or expanding in the case of some of the services) of given URLs.
Currently it supports the URL shortening services: tinyurl.com, bit.ly, cli.gs, goo.gl, kl.am, is.gd, tr.im .