PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Available Methods

shorten($url);

Takes the given $url and passes it to the service in order to obtain a shortened URL.

If the provided $url is invalid, an exception will be raised.

unshorten($shortenedUrl);

Takes the provided $shortenedUrl and passes it to the service in order to obtain the original URL.

If the provided $shortenedUrl is invalid, an exception will be raised.

setHttpClient(Zend_Http_Client $httpClient);

Use this method to set the HTTP client used for communicating with the service.

getHttpClient();

Use this method to access the HTTP client attached to the service. By default, this will lazy-load an instance of Zend_Http_Client if no client is yet attached.

Zend Framework