intahwebz/flickrguzzle
Composer 安装命令:
composer require intahwebz/flickrguzzle
包简介
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
README 文档
README
A Guzzle based Flickr API.
Example
A comprehensive set of examples is included as a standalone web application. To get this running:
1 Install the requirements via composer (php composer.phar install --dev)
2 Point a web server at the directory FlickrGuzzle/example with the directory index set to index.php
3 Copy FlickrGuzzle/example/configSample.php to FlickrGuzzle/example/config.php and put your Flickr key and secret in there.
You should now be able to point your browser to the
Functions not implemented yet
The service.php file has been auto-generated using the reflection methods 'flickr.reflection.getMethodInfo' and 'flickr.reflection.getMethods'.
Although all the functions are listed, only the ones that have something other than 'null' for the response class will actually work.
TODO
- Create and set the response classes for the 90% of functions that don't have them yet.
- Create tests.
- Start tagging versions.
- Figure out what to do about every flickr function having it's own set of error codes :(
- Implement the replace function at http://api.flickr.com/services/replace/
- Decide whether to implement the flickr.push.* functions.
- Figure out how to return array of objects without having (almost) useless 'List' container objects.
Function end point
Please note that the three functions:
Oauth request token - http://www.flickr.com/services/oauth/request_token Oauth access token - http://www.flickr.com/services/oauth/access_token', Upload file - http://api.flickr.com/services/upload/
Have their own end-point, which is different from the rest of the API. Also these functions do not return JSON data ever. It's either string-pairs or XML.
Non-implemented functions
The following functions are not implemented and never will be.
-
Deprecated auth functions
- flickr.auth.checkToken
- flickr.auth.getFrob
- flickr.auth.getFullToken
- flickr.auth.getToken
-
Test functions
- flickr.test.echo
- flickr.test.login
- flickr.test.null
intahwebz/flickrguzzle 适用场景与选型建议
intahwebz/flickrguzzle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 178 次下载、GitHub Stars 达 4, 最近一次更新时间为 2013 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「curl」 「http」 「rest」 「http client」 「api」 「client」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 intahwebz/flickrguzzle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 intahwebz/flickrguzzle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 intahwebz/flickrguzzle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
cURL and cURL based Soap-Client for PHP
repository php library
Simple cURL wrapper
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
A fluent PHP CURL wrapper
统计信息
- 总下载量: 178
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-04-10