Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanderdlm/battlerite-php
PHP/Guzzle wrapper for the Battlerite API
https://github.com/sanderdlm/battlerite-php
api api-wrapper battlerite guzzle php
Last synced: 5 days ago
JSON representation
PHP/Guzzle wrapper for the Battlerite API
- Host: GitHub
- URL: https://github.com/sanderdlm/battlerite-php
- Owner: sanderdlm
- License: mit
- Created: 2017-11-28T10:36:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-01T09:06:12.000Z (about 7 years ago)
- Last Synced: 2024-12-16T02:07:54.838Z (7 days ago)
- Topics: api, api-wrapper, battlerite, guzzle, php
- Language: PHP
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# battlerite-php
PHP/Guzzle wrapper for the Battlerite API. Very WIP, I'll keep updating this repo as soon as the developers update the API and new endpoints become available.## Requirements
PHP 5.6+
Guzzle 6.0+See composer.json
## Installation
Download or clone, run composer install, done
All the functions are documented inside the class, so take a look at api.php if you're going to be using this wrapper.
## Example
```php
"createdAt",
"page[limit]" => 1
];
$matches = $b->get_matches($options);
/* Optional: also grab telemetry data
foreach ($matches as &$match) {
$match->telemetry = $b->get_telemetry($match->telemetry_url);
}
*/
print_r($matches);
```### To do
* Add new endpoints
* Add Guzzle Pools#### Version
0.0.3### Contact
[@dreadnip](https://twitter.com/dreadnip)