https://github.com/ccaglayan/foxhole-php
https://github.com/ccaglayan/foxhole-php
api foxhole foxhole-game foxhole-war-api foxhole-warapi game library php
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ccaglayan/foxhole-php
- Owner: ccaglayan
- License: unlicense
- Created: 2019-07-30T13:01:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T13:28:00.000Z (almost 7 years ago)
- Last Synced: 2024-04-13T05:41:39.338Z (about 2 years ago)
- Topics: api, foxhole, foxhole-game, foxhole-war-api, foxhole-warapi, game, library, php
- Language: PHP
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FoxHole-PHP
Foxhole game [warapi](https://github.com/clapfoot/warapi)
#### Composer require command
`composer require ccaglayan/foxhole-php`
## Usage
It is fairly easy to use. I'll throw in an example.
```php
use FoxHolePHP\Client;
$client = new Client();
try{
$client->getWar(); // Get Active War Details
$client->getMaps(); // Get Active Maps
$client->getMapReport(MapName) //Get Selected Map War Detail
$client->getStaticMapData(MapName) // Get Selected Map Static Data
$client->getDynamicMapData(MapName) // Get Selected Map Dynamic Data
}catch(\FoxHolePHP\FoxHoleException $e) {
echo 'Error:'.$e->getMessage().'--'.$e->getCode();
exit;
}
```
## Contributing
Pull requests and issues are open!