gamepanelio / api
A PHP implementation of the GamePanel.io API
dev-master
2017-03-28 22:38 UTC
Requires
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.0
- php-http/httplug: ^1.0
- php-http/message-factory: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^1.0
- php-http/guzzle6-adapter: ^1.1
- php-http/message: ^1.0
This package is not auto-updated.
Last update: 2024-11-10 03:20:06 UTC
README
This library is a basic PHP implementation of the GamePanel.io API.
Installation
This library uses the HTTPlug HTTP client abstraction library - meaning you can use your favourite HTTP library with it!
For a quick and easy way to use this library in your project, via composer, run the following:
composer require php-http/curl-client guzzlehttp/psr7 php-http/message gamepanelio/api
There is also lots of different libraries that you can use with HTTPlug. To see how to use different libraries please refer to the HTTPlug documentation.
Usage
Simply instantiate a new GamePanelio()
class, and use the methods it provides:
<?php use GamePanelio\GamePanelio; use GamePanelio\AccessToken\PersonalAccessToken; $accessToken = new PersonalAccessToken("my-personal-access-token"); $gamepanelio = new GamePanelio("cool-name.mypanel.io", $accessToken); $gamepanelio->createServer([ /* ... required parameters ... */ ]);
License
This library is licensed under the MIT license. See the LICENSE
file for more info.