/PokemonGoAPI-PHP

Pokemon Go API PHP library

Primary LanguagePHPBSD 2-Clause "Simplified" LicenseBSD-2-Clause

PokemonGoAPI-PHP

Pokemon GO PHP API library

Build

  • Clone the repo and cd into the folder
  • git clone <repo>
  • Install the dependencies
  • composer install

Usage

EG:

// Initialize the pokemon go application
$application = new ApplicationKernel('INSERT_EMAIL', 'INSERT_PASSWORD', Factory::AUTHENTICATION_TYPE_GOOGLE);

// Retrieve the pokemon go api instance
$pokemonGoApi = $application->getPokemonGoApi();

// Retrieve the inventory
$inventory = $pokemonGoApi->getInventory();

// Retrieve the poke bank
$pokeBank = $inventory->getPokeBank();

// Retrieve a pokemon of type pidgey
$pokemon = $pokeBank->getPokemonsByType(PokemonId::PIDGEY)->first();

// Transfer / Release the pokemon (Send to the meat grinder)
$pokemon->transfer();

TODO

  • Implement the Map API
  • Improve logging

Contributors

Credits