Using one of the URL shortener services is straightforward. Each URL shortener follows a
simple interface that defines two methods: shorten() and
unshorten(). Instantiate the class, and call the appropriate
method.
<?php
$tinyurl = new Zend_Service_ShortUrl_TinyUrlCom();
// Shorten a URL:
$short = $tinyurl->shorten('http://framework.zend.com/'); // http://tinyurl.com/rxtuq
// Inflate or unshorten a short URL:
$long = $tinyurl->unshorten('http://tinyurl.com/rxtuq'); // http://framework.zend.com/




