Pokemon API PHP. Not finished at all so far.
Supports request signing.
- PHP 7.0+
- php-xxhash extension
- 64-bit PHP
To install with Composer
composer require sjaakmoes/pokapi
$authentication = new TrainersClub('username', 'password');
$position = new Position($latitude, $longitude, $altitude);
$deviceInfo = DeviceInfo::getDefault($uniqueDeviceId);
$api = new API($authentication, $position, $deviceInfo);
// Initializes like the real client
$api->initialize();
// Accept ToS
$api->acceptTerms();
// Execute operation
$getPlayerResponse = $api->getPlayerData();
$mapObjects = $api->getMapObjects();