leadthread / php-google-shortener
在PHP中轻松缩短URL
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: 2024-09-17 13:27:12 UTC
README
安装
通过 composer 安装 - 在终端中
composer require leadthread/php-google-shortener
用法
use LeadThread\GoogleShortener\Google; $c = new Google("token"); $result = $c->shorten("https://www.google.com/"); var_dump($result); // string(21) "http://goo.gl/1SvUIo8"