pnomolos/phitly
Composer 安装命令:
composer require pnomolos/phitly
包简介
Bit.ly v3 API wrapper
README 文档
README
A PHP library for connecting to the bit.ly v3 API. At the moment only tests for shortening URLs have been written as that's all that I need to do, should someone else want to help out that'd be great!
##Usage
$client = new \Phitly\Client($login, $apiKey); // Returns a \Phitly\Url object $url = $client->shorten('http://google.com'); $urls = $client->shorten(array('http://cnn.com', 'http://google.com'));
Acknowledgements
Phil Nash's ruby bitly library - on which a significant portion of this library was based.
Notes
As this library is still under development significant changes may still happen. Specifically, bitly is deprecating the usage of the apiKey parameter so the \Phitly\Client constructor is likely to change to support OAuth2 integration.
Copyright
Copyright © 2013 Philip Schalm
统计信息
- 总下载量: 598
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2013-06-06