nek-v / wargaming-api
Wargaming.net api oriented object.
1.4.3
2021-04-04 18:30 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- phpunit/phpunit: ^7.0
README
This package composer, allows to use more simply the wargaming API with a very simple and well documented object-oriented code for your IDE (integrated development environment).
- Get your application id here
- Initialise your application
- Make request
$WarGaming = new WargamingApi($application_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", $region = "eu");
- Search player
$WarGaming->searchPlayers($search = "volca", $options = [ "limit" => 10, "method" => "startswith", "region" => "eu" ]);
- Search player(s) by id
$WarGaming->infoPlayersById($players_id = ["500080014", "514444123", "514444121"], $options = [ "region" => "eu" ]);
- Server info
$WarGaming->serverInfo($region = "eu");
- Search clans
$WarGaming->searchClans($search = "volca", $options = [ "limit" => 10, "pagination" => "1", "region" => "eu" ]);
- Search clans by id
$WarGaming->infoClansById($clans_id = ["500041879", "500034196"], $options = [ "region" => "eu" ]);
- Search clans of player(s) id
$WarGaming->playerClans($players_id = ["500450795", "503197062", "500435236"]);