williamn/pokeapi-php

Pokéapi PHP wrapper


License
MIT

Documentation

pokephp-php

Build Status

Pokéapi PHP wrapper. Support both v1 and v2 API.

Installation

$ composer install

Usage

require 'vendor/autoload.php';

use Pokeapi\Client;

// Default to v2, if you want to call v1 use Client('v1')
$client = new Client();
$pokemon = $client->get('berry', 1);

See the test for more usage examples.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes. Please write good commit messages. Here is a guide.
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

TODO: Write history

Credits

TODO: Write credits

License

See LICENSE