A is.gd API client utilizing the Zend Framework
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Recordshelf/Service
tests/Recordshelf/Service
README.markdown

README.markdown

isgd-api-client

The isgd-api-client is a the TDD way developed client to the is.gd API utilizing Zend_ShortUrl_Service_Abstract of the Zend Framework. The is.gd service allows you to shorten URL's.

Requirements

  • An installed version of the Zend Framework with the installed/patched in Zend_ShortUrl component which currently drowses in the incubator.

Examples

The following example shows the two edge cases for using the is.gd API programmaticly with the isgd-api-client.

Usage Example:

<?php
require_once 'Recordshelf/Service/Isgd.php';

$service = new Recordshelf_Service_Isgd();
$service->shorten('http://zendframework.com'); // http://is.gd/1T35Q
$service->unshorten('http://is.gd/1T35Q'); // http://zendframework.com