2017 © Pedro Peláez
 

library pokephp

Pokeapi PHP Wrapper

image

danrovito/pokephp

Pokeapi PHP Wrapper

  • Tuesday, January 3, 2017
  • by danrovito
  • Repository
  • 7 Watchers
  • 29 Stars
  • 462 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 7 Versions
  • 9 % Grown

The README.md

PokePHP

A PHP Wrapper for the Pokemon API, (*1)

Build Status StyleCI License Total Downloads Latest Stable Version, (*2)

Getting Started

To get started you must first install the package from composer., (*3)

composer require danrovito/pokephp

After composer installs the required package you can call the class by setting the following:, (*4)

$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., (*5)

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., (*6)

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

License

pokephp is open-sourced software licensed under the MIT license, (*7)

Bug Reporting and Feature Requests

Please add as much detail as possible regarding the submission of issues and feature requests, (*8)

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., (*9)

The Versions

03/01 2017

dev-master

9999999-dev

Pokeapi PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by Dan Rovito

php pokeapi pokemon

03/01 2017

v1.2

1.2.0.0

Pokeapi PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by Dan Rovito

php pokeapi pokemon

03/01 2017

1.3

1.3.0.0

Pokeapi PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by Dan Rovito

php pokeapi pokemon

03/01 2017

1.2.x-dev

1.2.9999999.9999999-dev

Pokeapi PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by Dan Rovito

php pokeapi pokemon

16/11 2016

1.1

1.1.0.0

Pokeapi PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by Dan Rovito

php pokeapi pokemon

17/07 2016

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

Pokeapi PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by Dan Rovito

php pokeapi pokemon

17/07 2016

1.0

1.0.0.0

Pokeapi PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by Dan Rovito

php pokeapi pokemon