PHPackages                             danrovito/pokephp - 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. danrovito/pokephp

ActiveLibrary[API Development](/categories/api)

danrovito/pokephp
=================

Pokeapi PHP Wrapper

1.3(9y ago)652.3k20[1 PRs](https://github.com/danrovito/pokephp/pulls)MITPHPPHP &gt;=5.3.3

Since Jul 17Pushed 2y ago7 watchersCompare

[ Source](https://github.com/danrovito/pokephp)[ Packagist](https://packagist.org/packages/danrovito/pokephp)[ RSS](/packages/danrovito-pokephp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (8)Used By (0)

PokePHP
=======

[](#pokephp)

A PHP Wrapper for the [Pokemon API](https://pokeapi.co/)

[![Build Status](https://camo.githubusercontent.com/6146069dafd12ab3a044909d264b424d48b35be0f768aa50e5f5662c03ab60e7/68747470733a2f2f7472617669732d63692e6f72672f64616e726f7669746f2f706f6b657068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/danrovito/pokephp) [![StyleCI](https://camo.githubusercontent.com/9feee1480275d9acbc0dbb848d9827732e623871254d1882957500c28e8a1a83/68747470733a2f2f7374796c6563692e696f2f7265706f732f35393032353634352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/59025645) [![License](https://camo.githubusercontent.com/eb7f83bd6609b144ca7c63a956be3a6474c287b15e905057d3074046e73b56bb/68747470733a2f2f706f7365722e707567782e6f72672f64616e726f7669746f2f706f6b657068702f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/danrovito/pokephp) [![Total Downloads](https://camo.githubusercontent.com/c913d6789edb474dc89b488d7b1e4aca1b8b23e217017b9beb49ae96bddcd5fb/68747470733a2f2f706f7365722e707567782e6f72672f64616e726f7669746f2f706f6b657068702f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/danrovito/pokephp) [![Latest Stable Version](https://camo.githubusercontent.com/d72a91c5f92e768a505f558ac68b2318e71748be29a09349c60fda8701ea4916/68747470733a2f2f706f7365722e707567782e6f72672f64616e726f7669746f2f706f6b657068702f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/danrovito/pokephp)

Getting Started
---------------

[](#getting-started)

To get started you must first install the package from composer.

```
composer require danrovito/pokephp
```

After composer installs the required package you can call the class by setting the following:

```
$api = new PokePHP\PokeApi;
```

This will give you the instance of the class to call the API functions. Below you will see examples for each endpoint. I utilize the `$api` variable we created above to call each function.

Usage
-----

[](#usage)

You can search the data in the `$api` instance by calling the `search` method and passing a `filter` with an optional value, just as you can still limit the results with the `limit` method. To retrieve the data you must call the request method, which will return a json.

```
$response = $api->search(Filter::POKEMON_COLOR, 'red')->limit(5)->request();
```

License
-------

[](#license)

pokephp is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Bug Reporting and Feature Requests
----------------------------------

[](#bug-reporting-and-feature-requests)

Please add as much detail as possible regarding the submission of issues and feature requests

Disclaimer
----------

[](#disclaimer)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 84.1% 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 ~42 days

Total

5

Last Release

3422d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57faf02cb728789f5bb1242a73090ac1e9040ca9c10baf655e3a7e72d555d9ad?d=identicon)[danrovito](/maintainers/danrovito)

---

Top Contributors

[![danrovito](https://avatars.githubusercontent.com/u/8322674?v=4)](https://github.com/danrovito "danrovito (106 commits)")[![AssoDePicche](https://avatars.githubusercontent.com/u/86676526?v=4)](https://github.com/AssoDePicche "AssoDePicche (16 commits)")[![andreaselia](https://avatars.githubusercontent.com/u/5033092?v=4)](https://github.com/andreaselia "andreaselia (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

hacktoberfestphppokemonpokeapi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danrovito-pokephp/health.svg)

```
[![Health](https://phpackages.com/badges/danrovito-pokephp/health.svg)](https://phpackages.com/packages/danrovito-pokephp)
```

PHPackages © 2026

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