PHPackages                             nicklasw/pkm-go-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nicklasw/pkm-go-api

ActiveProject[API Development](/categories/api)

nicklasw/pkm-go-api
===================

The Pokemon Go API library.

v2.0.5(9y ago)13161947[13 issues](https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues)MITPHPPHP &gt;=5.6

Since Aug 6Pushed 9y ago32 watchersCompare

[ Source](https://github.com/NicklasWallgren/PokemonGoAPI-PHP)[ Packagist](https://packagist.org/packages/nicklasw/pkm-go-api)[ RSS](/packages/nicklasw-pkm-go-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (10)Versions (9)Used By (0)

PokemonGoAPI-PHP
================

[](#pokemongoapi-php)

[![Total Downloads](https://camo.githubusercontent.com/071900d7b6dc57c7ae19287ecf912512d1176238f6e3f3e9445ea128019e4eab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e69636b6c6173772f706b6d2d676f2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nicklasw/pkm-go-api)[![PHP7 Ready](https://camo.githubusercontent.com/1bdeb491d2b30d89ec425c42b74dba8d14431e7355c551cb5a573b46f4e0bf35/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850372d72656164792d677265656e2e737667)](https://packagist.org/packages/nicklasw/pkm-go-api)

Pokemon GO PHP API library

Install
=======

[](#install)

Run the command `composer require nicklasw/pkm-go-api`.

Usage
=====

[](#usage)

EG:

```
 // Create the authentication config
$config = new Config();
$config->setProvider(Factory::PROVIDER_PTC);
$config->setUser('INSERT_USER');
$config->setPassword('INSERT_PASSWORD');

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

// Add a event listener,
$manager->addListener(function ($event, $value) {
    if ($event === Manager::EVENT_ACCESS_TOKEN) {
        /** @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();
```

TODO
----

[](#todo)

- Implement the Map API
- Improve logging

Contributors
------------

[](#contributors)

- [Nicklas Wallgren](https://github.com/NicklasWallgren)
- [Ni42](https://github.com/Ni42)
- [All Contributors](../../contributors)

Testing
-------

[](#testing)

```
$ composer test
```

Slack Chat
----------

[](#slack-chat)

We use [Slack](https://slack.com) for community discussions. You can find our team here:

Credits
-------

[](#credits)

- [Grover-c13](https://github.com/Grover-c13) for the inspiration
- [AeonLucid](https://github.com/AeonLucid/POGOProtos) for improved protos

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

6

Last Release

3468d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1784879?v=4)[NicklasWallgren](/maintainers/NicklasWallgren)[@NicklasWallgren](https://github.com/NicklasWallgren)

---

Top Contributors

[![NicklasWallgren](https://avatars.githubusercontent.com/u/1784879?v=4)](https://github.com/NicklasWallgren "NicklasWallgren (215 commits)")[![Gnacik](https://avatars.githubusercontent.com/u/2204429?v=4)](https://github.com/Gnacik "Gnacik (38 commits)")[![DrDelay](https://avatars.githubusercontent.com/u/15216003?v=4)](https://github.com/DrDelay "DrDelay (36 commits)")[![cdeveau](https://avatars.githubusercontent.com/u/2213642?v=4)](https://github.com/cdeveau "cdeveau (23 commits)")[![Ni42](https://avatars.githubusercontent.com/u/9167950?v=4)](https://github.com/Ni42 "Ni42 (9 commits)")[![voxx](https://avatars.githubusercontent.com/u/5258606?v=4)](https://github.com/voxx "voxx (2 commits)")[![mattwells](https://avatars.githubusercontent.com/u/507858?v=4)](https://github.com/mattwells "mattwells (1 commits)")[![f2008305](https://avatars.githubusercontent.com/u/20866507?v=4)](https://github.com/f2008305 "f2008305 (1 commits)")

---

Tags

apiphppokemon-gopokemongoPokemon Go API

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nicklasw-pkm-go-api/health.svg)

```
[![Health](https://phpackages.com/badges/nicklasw-pkm-go-api/health.svg)](https://phpackages.com/packages/nicklasw-pkm-go-api)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M526](/packages/shopware-core)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
