by NicklasWallgren

NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library

126 Stars 53 Forks Last release: Not found BSD 2-Clause "Simplified" License 344 Commits 6 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Total Downloads PHP7 Ready

Pokemon GO PHP API library


Run the command

composer require nicklasw/pkm-go-api


EG: ```php // Create the authentication config $config = new Config(); $config->setProvider(Factory::PROVIDERPTC); $config->setUser('INSERTUSER'); $config->setPassword('INSERT_PASSWORD');

// Create the authentication manager $manager = Factory::create($config);

// Add a event listener, $manager->addListener(function ($event, $value) { if ($event === Manager::EVENTACCESSTOKEN) { /** @var AccessToken $accessToken */ $accessToken = $value;

    // Persist the access token in session storage, cache or whatever.


// Initialize the pokemon go application $application = new ApplicationKernel($manager);

// 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(); ```


  • Implement the Map API
  • Improve logging



$ composer test

Slack Chat

We use Slack for community discussions. You can find our team here: https://pokemongoapi-php.slack.com


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.