traviskuhl / hn-php
HackerNews PHP Client
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/traviskuhl/hn-php
Requires
- php: >=5.4.0
- ext-json: *
- guzzlehttp/guzzle: 4.*
This package is not auto-updated.
Last update: 2022-07-04 16:10:11 UTC
README
https://github.com/HackerNews/API
Use
{
"require": {
"traviskuhl/hn-php": "dev-master"
}
}
Example
$client = new hn\Client(); // fetch a story $story = $client->item(8243523); echo $story->title; // Yahoo stopping all new development of YUI // same for a poll $poll = $client->item(126809); echo $poll->title; // Poll: What would happen if News.YC had explicit support for polls? // fetch a user $user = $client->user('pg'); echo $user->bio; // Bug fixer.