dev-development
dev-developmentGoogle URL Shortener API
MIT
The Requires
by Hakim Razalan
Wallogit.com
2017 © Pedro Peláez
Google URL Shortener API
Simple PHP library for Google URL Shortener API, (*1)
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)
composer require h2akim/googl:*
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'
]);
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'
]);
Google URL Shortener API
MIT