zenapply / php-google-shortener
This package is abandoned and no longer maintained.
The author suggests using the leadthread/php-google-shortener package instead.
Easily shorten URLs in PHP
2.0.0
2017-04-20 00:35 UTC
Requires
- php: ^5.5.9|^7.0
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.0
This package is auto-updated.
Last update: 2021-12-17 07:50:31 UTC
README
Installation
Install via composer - In the terminal:
composer require leadthread/php-google-shortener
Usage
use LeadThread\GoogleShortener\Google; $c = new Google("token"); $result = $c->shorten("https://www.google.com/"); var_dump($result); // string(21) "http://goo.gl/1SvUIo8"