goo.gl URL shortener API

1.0.0 2017-04-24 06:49 UTC

This package is not auto-updated.

Last update: 2025-04-27 06:43:59 UTC


README

Install

$ composer require dominikveils/goo-gl

Usage

<?php

require 'vendor/autoload.php';

$googl = new DominikVeils\Googl\Googl('API KEY');

$short_url =  $googl->shorten('http://google.com');
echo "SHORT URL: {$short_url}", PHP_EOL;
$long_url = $googl->expand($short_url);
echo "LONG URL: {$long_url}", PHP_EOL;

LICENSE

MIT