Short and long url using Google Shortener API with PHP

Now, we gonna to learn how to short or expand the url using Google Shortener API with php. In this tutorial based on PHP alone.  For more details about google shortener api refer this url


  • You can convert long to short url
  • You can convert short to long url

For this tutorial i have use one php class to handle this.


 How to use this:


Demo and Download



Please don’t forget to share and subscribe to latest updates of the blog .


  • url shortener google api

    Hiya very nice blog!! Man .. Beautiful .. Amazing .. I’ll bookmark your web site
    and take the feeds additionally? I am glad to search out a lot of useful information here within the put up, we want develop
    extra strategies in this regard, thank you for sharing.

    . . . . .

  • Josef

    My spouse and I stumbled over here from a different page and thought I should check
    things out. I like what I see so i am just following you.
    Look forward to looking at your web page repeatedly.

  • forbrukslån bedrift

    Hey There. I found your blog using msn. This is a very well written article.
    I will make sure to bookmark it and come back to read more of your useful information. Thanks for the post.

    I will definitely return.

    Here is my homepage … forbrukslån bedrift

  • Xpango hack

    That is very attention-grabbing, You are an overly professional blogger.
    I’ve joined your feed and sit up for in quest of extra of your wonderful post.
    Additionally, I’ve shared your website in my social

    my page … Xpango hack

  • gokuhs

    It’s work perfect! Thanks!