2017 © Pedro Peláez
 

library nytimes-apis

NYTimes API PHP Wrapper

image

amy/nytimes-apis

NYTimes API PHP Wrapper

  • Tuesday, December 16, 2014
  • by amy
  • Repository
  • 0 Watchers
  • 4 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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:, (*1)

"require" : {
    "amy/nytimes-apis": "dev-master",
    "eloquent/enumeration": "dev-master",
    "nategood/httpful": "*"
}

Then run:, (*2)

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:, (*3)

$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), (*4)

Contact

Reach out to me at ac1084@scarletmail.rutgers.edu, (*5)

The Versions

16/12 2014

dev-master

9999999-dev

NYTimes API PHP Wrapper

  Sources   Download

The Requires

 

by Amy Chen