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:

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

Check the new updates on


Comments button Twitter button Facebook button LinkedIn button Google+ button
Twitter button Twitter button Facebook button LinkedIn button Google+ button

12 responses to “Google URL Shortener PHP Class”

  1. […] This post was mentioned on Twitter by Mohamed aboel fetouh, Mohamed aboel fetouh. Mohamed aboel fetouh said: RT @anaas: good work @eslam_mahmoud #egypt Google URL Shortener PHP Class #php #google #api #class #phpcl … […]

  2. anas says:

    good work

    goo man gooo

  3. Romain says:

    thx very usefull and great job ;-)

  4. Hazem Noor says:

    جيد – سأقوم بتجربته
    بالتوفيق دائما

  5. […] i`m happy because my PHP class which i have wrote about it earlier was the first script about “ url shortener serves” on […]

  6. John says:

    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.

  7. John says:

    So, how can we manage to see the analytics report of URLs shortened using URL Shortener API in the website

  8. Ninja says:

    Great work thanks. P.S. Congratulation on Egypt’s revolution.

  9. budflick says:

    thanks man for this code. ill have to try this as a url shortener for my mini social network

  10. Eslam says:

    Thank you all, i hope it be helpful to you all

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.

Subscribe: RSS | Facebook | Twitter | Google Plus