Download the PHP package xvilo/hackernews-client without Composer
On this page you can find all versions of the php package xvilo/hackernews-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xvilo/hackernews-client
More information about xvilo/hackernews-client
Files in xvilo/hackernews-client
Download xvilo/hackernews-client
More information about xvilo/hackernews-client
Files in xvilo/hackernews-client
Vendor xvilo
Package hackernews-client
Short Description A HackerNews client library using the official API.
License MIT
Package hackernews-client
Short Description A HackerNews client library using the official API.
License MIT
Please rate this library. Is it a good library?
Informations about the package hackernews-client
HackerNews Client (PHP)
A HackerNews API Wrapper, it's based on the official Firebase API provided at HackerNews/api. In its current form, it supports all endpoints with basic calls, this will be expanded in the future.
Installation
You can install this package through composer, the easiest way is to:
You will also need an implementation of php-http/client-implementation
.
Usage
API Scopes
- Item
getItem(int $id): array;
- User
getUser(string $username): array;
- FrontPage
getTopStories(): array
getNewStories(): array
getBestStories(): array
getAskStories(): array
getShowStories(): array
getJobStories(): array
- MetaData
getMaxItem(): int
getUpdates(): array
FAQ
php-http/client-implementation needed
If you try to install this package and get the following error:
Please install a PHP HTTP library such as Guzzle or Symfony HttpClient Component:
or
All versions of hackernews-client with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
php-http/httplug Version ^2.3
php-http/discovery Version ^1.14
psr/http-message Version ^1.0
php-http/message-factory Version ^1.0
php-http/client-implementation Version ^1.0
php-http/client-common Version ^2.5
php-http/httplug Version ^2.3
php-http/discovery Version ^1.14
psr/http-message Version ^1.0
php-http/message-factory Version ^1.0
php-http/client-implementation Version ^1.0
php-http/client-common Version ^2.5
The package xvilo/hackernews-client contains the following files
Loading the files please wait ....