PHPackages                             mgerarts/hn-api-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. mgerarts/hn-api-php

ActiveLibrary[API Development](/categories/api)

mgerarts/hn-api-php
===================

A PHP wrapper for the Hacker news API, using Guzzle

v1.0.2(9y ago)174MITPHPPHP &gt;=7.1

Since May 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mark-gerarts/hn-api-php)[ Packagist](https://packagist.org/packages/mgerarts/hn-api-php)[ RSS](/packages/mgerarts-hn-api-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (4)Used By (0)

HackerNewsApi
=============

[](#hackernewsapi)

A [HN Api](https://github.com/HackerNews/API) client wrapper for PHP, built to experiment with [Guzzle services](https://github.com/guzzle/guzzle-services).

Installation
------------

[](#installation)

The package is available through composer:

```
$ composer require mgerarts/hn-api-php
```

Usage
-----

[](#usage)

The client is a wrapper around a Guzzle service definition. It can be instantiated like this:

```
