PHPackages                             tuttarealstep/pokegoapi-php - 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. tuttarealstep/pokegoapi-php

ActiveLibrary[API Development](/categories/api)

tuttarealstep/pokegoapi-php
===========================

Api for pokemon go

222011[9 issues](https://github.com/tuttarealstep/PokeGOAPI-PHP/issues)PHP

Since Aug 3Pushed 9y ago10 watchersCompare

[ Source](https://github.com/tuttarealstep/PokeGOAPI-PHP)[ Packagist](https://packagist.org/packages/tuttarealstep/pokegoapi-php)[ RSS](/packages/tuttarealstep-pokegoapi-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PokeGOAPI-PHP
=============

[](#pokegoapi-php)

Pokemon GO PHP API library

[![Build Status](https://camo.githubusercontent.com/fd0a126cfe2bda669e50933e114b566ccff45b270ec635f59fc90c23869c204a/68747470733a2f2f7472617669732d63692e6f72672f74757474617265616c737465702f506f6b65474f4150492d5048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tuttarealstep/PokeGOAPI-PHP)

This is a conversion of this: [PokeGOAPI-Java](https://github.com/Grover-c13/PokeGOAPI-Java) in php.

Build
=====

[](#build)

- Clone the repo
- `git clone https://github.com/tuttarealstep/PokeGOAPI-PHP.git`
- Move to the repo folder
- `cd PokeGOAPI-PHP`
- Install the dependencies
- `composer install`

Usage
=====

[](#usage)

How to use example:

```
  use PokemonGoAPI\Api\PokemonGoAPI;

  $PokemonGoAPILogin = (new \PokemonGoAPI\Auth\GoogleLogin())->login('username', 'password'); //Use Google for login and retrive token

  $PokemonGoAPILogin = (new \PokemonGoAPI\Auth\GoogleLogin())->loginWithGoogleToken($token); //or use existing token

  $PokemonGoAPI = new PokemonGoAPI($PokemonGoAPILogin); //Send token to the api

  echo $PokemonGoAPI->getPlayerProfile()->getUsername() . "\n"; //Print User Username
```

For enable debug message go to `src/PokemonGoAPI/Utils/Output.php` and change:

```
    public $PK_GO_DEBUG = false;
```

To:

```
    public $PK_GO_DEBUG = true;
```

Problems
--------

[](#problems)

- If you get NeedsBrowser error go to this link: [DisplayUnlockCaptcha](https://accounts.google.com/b/0/DisplayUnlockCaptcha) and proceed to Unlock captcha.

Links
-----

[](#links)

- [Examples](https://github.com/tuttarealstep/PokeGOAPI-PHP/tree/master/examples)

Todo
----

[](#todo)

- Implement PTC Login
- Test all things
- Check for issues
- Comment code
- Phpdoc
- Guide

Credits
-------

[](#credits)

- [Grover-c13](https://github.com/Grover-c13) for his java api (Beacuse I've converted his api in php and for the inspiration)
- [jaspervdm](https://github.com/jaspervdm/pogoprotos-php) for his protos
- [NicklasWallgren](https://github.com/NicklasWallgren/PokemonGoAPI-PHP) because I've used for his updated protos

Legal
-----

[](#legal)

This project is in no way affiliated with, maintained, sponsored, authorized by Niantic, The Pokémon Company, Nintendo or any of its affiliates or subsidiaries. This is an independent and unofficial API for educational use ONLY. Using the project might be against the terms of service.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![tuttarealstep](https://avatars.githubusercontent.com/u/2702557?v=4)](https://github.com/tuttarealstep "tuttarealstep (22 commits)")[![akeinhell](https://avatars.githubusercontent.com/u/1063877?v=4)](https://github.com/akeinhell "akeinhell (8 commits)")

### Embed Badge

![Health badge](/badges/tuttarealstep-pokegoapi-php/health.svg)

```
[![Health](https://phpackages.com/badges/tuttarealstep-pokegoapi-php/health.svg)](https://phpackages.com/packages/tuttarealstep-pokegoapi-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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