waynestate/news-api-php

Connector for News API

2.0.0 2021-07-22 18:01 UTC

README

Connector to interact with the News API

Example Usage

<?php
use Waynestate\Api\News;

// News API
$news = new News(NEWS_API_KEY);

// List of releases
$releases = $news->request('releases', array('perPage' => '2'));
var_dump($releases);

// Individual Release
$release = $news->request('releases', array('id' => '1'));
var_dump($release);