amy/nytimes-apis

There is no license information available for the latest version (dev-master) of this package.

NYTimes API PHP Wrapper

dev-master 2014-12-16 20:23 UTC

This package is not auto-updated.

Last update: 2024-11-05 03:35:29 UTC


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