williamn / pokeapi-php
Pokéapi PHP wrapper
v1.0.0
2016-07-14 06:33 UTC
Requires
- php: >=5.6
- ext-curl: *
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- php-vcr/php-vcr: dev-master
- php-vcr/phpunit-testlistener-vcr: *
- phpunit/phpunit: 5.0.*
This package is not auto-updated.
Last update: 2025-01-04 20:36:30 UTC
README
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes. Please write good commit messages. Here is a guide.
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
TODO: Write history
Credits
TODO: Write credits
License
See LICENSE