Google URL Shortener PHP Class

The day Google announced that shorten URL serves got an API i created a PHP Class to handle the connection with the API.

Finaly my class got approved from and you can get it from the website on that link.

Main Features:

  1. Shorten or expand the urls with googl shorten url serves
  2. no need to know JSON the request send as string and get the result as php array
  3. could be easily implemented

Future work:

  • will add short URL’s analytics & user’s history

you can download the class form Download Here test it and give me feed back

Check the new updates on


12 thoughts on “Google URL Shortener PHP Class”

  1. I’ve got one confusion on the URL Shortener API. Google only provides the Analytics report of those URLs, on, shortened from the itself. However, the reports of URLs shortened using URL Shortener API are not shown in Albeit, I know we can extract analytics report using the URL Shortener API.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.