{"id":21149931,"url":"https://github.com/nicklaswallgren/pokemongoapi-php","last_synced_at":"2025-10-25T07:41:37.926Z","repository":{"id":57026707,"uuid":"64211418","full_name":"NicklasWallgren/PokemonGoAPI-PHP","owner":"NicklasWallgren","description":"Pokemon Go API PHP library","archived":false,"fork":false,"pushed_at":"2016-12-31T13:15:00.000Z","size":622,"stargazers_count":130,"open_issues_count":13,"forks_count":51,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-07-22T15:55:06.943Z","etag":null,"topics":["api","php","pokemon-go","pokemongo"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NicklasWallgren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-26T10:08:45.000Z","updated_at":"2024-07-28T02:21:24.000Z","dependencies_parsed_at":"2022-08-23T14:21:04.384Z","dependency_job_id":null,"html_url":"https://github.com/NicklasWallgren/PokemonGoAPI-PHP","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/NicklasWallgren/PokemonGoAPI-PHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicklasWallgren%2FPokemonGoAPI-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicklasWallgren%2FPokemonGoAPI-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicklasWallgren%2FPokemonGoAPI-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicklasWallgren%2FPokemonGoAPI-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicklasWallgren","download_url":"https://codeload.github.com/NicklasWallgren/PokemonGoAPI-PHP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicklasWallgren%2FPokemonGoAPI-PHP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280923471,"owners_count":26414234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","php","pokemon-go","pokemongo"],"created_at":"2024-11-20T09:48:08.740Z","updated_at":"2025-10-25T07:41:37.881Z","avatar_url":"https://github.com/NicklasWallgren.png","language":"PHP","readme":"# PokemonGoAPI-PHP\n\n[![Total Downloads][ico-downloads]][link-packagist]\n[![PHP7 Ready](https://img.shields.io/badge/PHP7-ready-green.svg)][link-packagist]\n\nPokemon GO PHP API library\n\n# Install\nRun the command `composer require nicklasw/pkm-go-api`.\n\n# Usage\nEG:\n```php\n // Create the authentication config\n$config = new Config();\n$config-\u003esetProvider(Factory::PROVIDER_PTC);\n$config-\u003esetUser('INSERT_USER');\n$config-\u003esetPassword('INSERT_PASSWORD');\n\n// Create the authentication manager\n$manager = Factory::create($config);\n\n// Add a event listener,\n$manager-\u003eaddListener(function ($event, $value) {\n    if ($event === Manager::EVENT_ACCESS_TOKEN) {\n        /** @var AccessToken $accessToken */\n        $accessToken = $value;\n\n        // Persist the access token in session storage, cache or whatever.\n    }\n});\n\n// Initialize the pokemon go application\n$application = new ApplicationKernel($manager);\n\n// Retrieve the pokemon go api instance\n$pokemonGoApi = $application-\u003egetPokemonGoApi();\n\n// Retrieve the inventory\n$inventory = $pokemonGoApi-\u003egetInventory();\n\n// Retrieve the poke bank\n$pokeBank = $inventory-\u003egetPokeBank();\n\n// Retrieve a pokemon of type pidgey\n$pokemon = $pokeBank-\u003egetPokemonsByType(PokemonId::PIDGEY)-\u003efirst();\n\n// Transfer / Release the pokemon (Send to the meat grinder)\n$pokemon-\u003etransfer();\n```\n\n## TODO\n  - Implement the Map API\n  - Improve logging\n\n## Contributors\n  - [Nicklas Wallgren](https://github.com/NicklasWallgren)\n  - [Ni42](https://github.com/Ni42)\n  - [All Contributors][link-contributors]\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Slack Chat\n\nWe use [Slack](https://slack.com) for community discussions. You can find our team here: https://pokemongoapi-php.slack.com\n\n## Credits\n- [Grover-c13](https://github.com/Grover-c13) for the inspiration\n- [AeonLucid](https://github.com/AeonLucid/POGOProtos) for improved protos\n\n[ico-downloads]: https://img.shields.io/packagist/dt/nicklasw/pkm-go-api.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/nicklasw/pkm-go-api\n[link-contributors]: ../../contributors\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklaswallgren%2Fpokemongoapi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicklaswallgren%2Fpokemongoapi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklaswallgren%2Fpokemongoapi-php/lists"}