speedybrain / kongregate
A simple helper to communicate with the Kongregate Server Side API
1.0.1
2018-10-28 19:56 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is auto-updated.
Last update: 2025-07-29 01:34:52 UTC
README
This is a simple helper to communicate with the Kongregate Server Side API via PHP.
Installation
Install the latest version with
$ composer require speedybrain/kongregate
Usage
composer require speedybrain/kongregate
The Kongregate Class has a static function for every Server Side API Endpoint, so there is no need to create an object. Every function will return an instance of HttpResponse
Example 'High Scores'
use SpeedyBrain\Kongregate\Kongregate; $response = Kongregate::highscores('weekly',22544); if($response->success()) { $highscores = $response->parsedBody(); }
About
License
This package is licensed under the GPL-3.0 License - see the LICENSE file for details.