library hn-php
HackerNews PHP Client
traviskuhl/hn-php
HackerNews PHP Client
- Thursday, October 9, 2014
- by traviskuhl
- Repository
- 1 Watchers
- 0 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
hn-php
, (*1)
https://github.com/HackerNews/API, (*2)
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.
dev-master
9999999-dev
HackerNews PHP Client
Sources
Download
MIT
The Requires
hackernews
hn