Pokemon GO PHP API library
- Clone the repo and cd into the folder
git clone <repo>
- Install the dependencies
composer install
- Configure the enviroment file
cp .env.example .env
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->getItems()->getPokeBank();
// Retrieve a pokemon of type pidgey
$pokemon = current($pokeBank->getPokemonsByType(PokemonId::PIDGEY));
// Transfer / Release the pokemon (Send to the meat grinder)
$pokemon->transfer();
- Implement the Map API
- Improve Google Oauth
- Improve logging
- Improve PTC authentication error handling
- Nicklas Wallgren
- Grover-c13 for the inspiration
- AeonLucid for improved protos