2017 © Pedro Peláez
 

library googl

Google URL Shortener API

image

h2akim/googl

Google URL Shortener API

  • Thursday, April 12, 2018
  • by h2akim
  • Repository
  • 1 Watchers
  • 2 Stars
  • 577 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 148 % Grown

The README.md

Google URL Shortener API

Simple PHP library for Google URL Shortener API, (*1)

Discontinuation

As Google's URL Shortener service will be discontinued on March 30, 2019, there is no new development of this package from now on. Thanks, (*2)

Getting Started

Composer

composer require h2akim/googl:*

How to Use

Create a new shorten URL

Parameters available: * longUrl * object (optional) - return as object (if true), (*3)

namespace H2akim\Googl;

$googl = new Googl('your-api-key');

$googl->create([
    'longUrl' => 'http://url.that.you.want.com'
]);

Retrieve original url from shorten URL

Parameters available: * shortUrl * projection - ANALYTICS_CLICKS / ANALYTICS_TOP_STRINGS / FULL * object (optional) - return as object (if true), (*4)

namespace H2akim\Googl;

$googl = new Googl('your-api-key');

$googl->expand([
    'shortUrl' => 'http://goo.gl/short-url'
]);

The Versions

12/04 2018

dev-master

9999999-dev

Google URL Shortener API

  Sources   Download

MIT

by Hakim Razalan

29/01 2018

dev-development

dev-development

Google URL Shortener API

  Sources   Download

MIT

The Requires

 

by Hakim Razalan

24/02 2017

1.0.1

1.0.1.0

Google URL Shortener API

  Sources   Download

MIT

by Hakim Razalan

18/08 2016

1.0.0

1.0.0.0

Google URL Shortener API

  Sources   Download

MIT

by Hakim Razalan