PHPackages                             traviskuhl/hn-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. traviskuhl/hn-php

AbandonedArchivedLibrary[API Development](/categories/api)

traviskuhl/hn-php
=================

HackerNews PHP Client

07PHP

Since Oct 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/traviskuhl/hn-php)[ Packagist](https://packagist.org/packages/traviskuhl/hn-php)[ RSS](/packages/traviskuhl-hn-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

hn-php
======

[](#hn-php)

[![Build Status](https://camo.githubusercontent.com/fc658b4410c998d5f618e8bb50b51608bac1153521d640abd7add972b6fd4f28/68747470733a2f2f7472617669732d63692e6f72672f7472617669736b75686c2f686e2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/traviskuhl/hn-php)

Use
---

[](#use)

```
{
    "require": {
        "traviskuhl/hn-php": "dev-master"
    }
}

```

Example
-------

[](#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.
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/166856?v=4)[Travis](/maintainers/traviskuhl)[@traviskuhl](https://github.com/traviskuhl)

---

Top Contributors

[![traviskuhl](https://avatars.githubusercontent.com/u/166856?v=4)](https://github.com/traviskuhl "traviskuhl (8 commits)")

### Embed Badge

![Health badge](/badges/traviskuhl-hn-php/health.svg)

```
[![Health](https://phpackages.com/badges/traviskuhl-hn-php/health.svg)](https://phpackages.com/packages/traviskuhl-hn-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
