Goo.gl API Class is an easy to use PHP wrapper for google’s url shortening service, goo.gl.
PHP 5 .1.3 or above and cURL is required.
Documentation is included in HTML format.
Example usage: Shorten a link:
Googl::shorten('http://codecanyon.net/item/googl-api-class/231394');
Expand a link to its original form:
Googl::expand('goo.gl/5Mciq');