Skip to content

NoAIGhost/PokeGOAPI-PHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokeGOAPI-PHP

Pokemon GO PHP API library

This is a conversion of this: PokeGOAPI-Java in php.

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

How to use example:

  use PokemonGoAPI\Api\PokemonGoAPI;
  
  $PokemonGoAPILogin = (new \PokemonGoAPI\Auth\GoogleLogin())->login('username', 'password'); //Use Google for login and retrive 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;

TODO

  • Implement PTC Login
  • Finish Map Implementation
  • Test all things

Credits

  • Grover-c13 for his java api (Beacuse I've converted his api in php and for the inspiration)
  • jaspervdm for his protos
  • NicklasWallgren because I've used for his updated protos

About

Pokemon GO PHP API library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%