PHP code example of h2akim / googl
1. Go to this page and download the library: Download h2akim/googl library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
h2akim / googl example snippets
namespace H2akim\Googl;
$googl = new Googl('your-api-key');
$googl->create([
'longUrl' => 'http://url.that.you.want.com'
]);
namespace H2akim\Googl;
$googl = new Googl('your-api-key');
$googl->expand([
'shortUrl' => 'http://goo.gl/short-url'
]);