zenapply/php-bitly

此包已被废弃,不再维护。作者建议使用leadthread/php-bitly包。

在PHP中轻松缩短URL

4.0.0 2017-04-20 00:20 UTC

This package is auto-updated.

Last update: 2021-12-17 07:50:30 UTC


README

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Dependency Status Total Downloads

版本3现在使用Bitly要求的OAuth2。 在此获取您的开发者访问令牌

安装

通过composer安装 - 在终端中

composer require leadthread/php-bitly

用法

use LeadThread\Bitly\Bitly;
$c = new Bitly("access token");
$result = $c->shorten("https://www.google.com/");
var_dump($result);
// string(21) "http://bit.ly/1SvUIo8"