leadthread / php-google-shortener
Easily shorten URLs in PHP
Installs: 12 525
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
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: 2024-10-17 13:46:53 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"