amy/nytimes-apis
Composer 安装命令:
composer require amy/nytimes-apis
包简介
NYTimes API PHP Wrapper
README 文档
README
##PHP wrapper for NYTimes APIs.
####Are you a PHP dev? Try out these php bindings for the NYTimes API.
Use the Composer dependency manager to easily include these bindings into your project. In the composer.json file in your root directory add the following require entry:
"require" : {
"amy/nytimes-apis": "dev-master",
"eloquent/enumeration": "dev-master",
"nategood/httpful": "*"
}
Then run:
composer install
composer update
NYTimes APIs Currently Supported
- Article Search API
###Documentation (More thorough documentation to come!) Creating request response objects are now super easy for PHP devs! Here's an example use for the Article Search API:
$query = new ArticleSearchQuery('test');
$query
->page(1)
->sort(SortField::NEWEST());
$request = new ArticleSearchRequest(
$query,
ArticleSearchResponseFormat::JSON(),
'your key'
);
$json = $request->query();
Authors and Contributors
Amy Chen (@amy)
Contact
Reach out to me at ac1084@scarletmail.rutgers.edu
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-12-07