No description or website provided.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources update achievements and quests Dec 3, 2018
src rename to survivalgames Oct 21, 2018
tests add some more tests Jul 29, 2018
.gitignore guild changes Jul 29, 2018
LICENSE Create LICENSE Oct 14, 2017
README.md megawalls resource and level changes (reclaim update) Aug 4, 2018
composer.json add more keywords May 5, 2018
phpunit.xml Hinting (#41) Feb 9, 2018

README.md

Hypixel PHP

This is a PHP wrapper for the Hypixel Public API You can find Documentation and a Java implementation here: https://github.com/HypixelDev/PublicAPI

Note that this version is VERY outdated and a lot of things will not work as intended.

Requirements

  • PHP 7+
  • Hypixel API key

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "plancke/hypixel-php=^1.0.10"

If you plan on using the mongo cache implementation you'll also need to require mongo, (suggested package)

I don't push a new version for every minor resource update. You can use $ composer require "plancke/hypixel-php=dev-master" to always download latest.

TODO

  • Add examples

Usage

To interact with the API you need an API key, you can get a key by doing "/api" on the Hypixel Network.

$HypixelPHP = new HypixelPHP('API_KEY');

// you can override modules, not required
$HypixelPHP->setCacheHandler(...);
$HypixelPHP->setLogger(...);
$HypixelPHP->setFetcher(...);

Old Version

You can find the old 1 file version in the old branch.