Skip to content

amy/NYTimes-APIs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NYTimes-APIs

##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 [email protected]

About

PHP wrapper for NYTimes APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages