Download the PHP package davidwofford/phppokeapi without Composer
On this page you can find all versions of the php package davidwofford/phppokeapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davidwofford/phppokeapi
More information about davidwofford/phppokeapi
Files in davidwofford/phppokeapi
Package phppokeapi
Short Description PhpPokeApi is a simple wrapper for making requests to the poke api - https://pokeapi.co/
License MIT
Homepage https://github.com/davidwofford/PhpPokeApi
Informations about the package phppokeapi
PHP Poke API
A simple wrapper for connecting to and pulling information from the Pokeapi api
Features
- An easy to use wrapper for connecting to the poke api to get pokemon data
- Option to filter down the data that is returned from the api so you only get what you need
Notes
- All data is returned as associative arrays
Requirements
- PHP >= 7.1
- Curl extension enabled
- JSON extension enabled
Installation
Composer
To install through composer add the following line to your composer.json
file:
or run this command
Copy
If you do not wish to use composer, copy the PhpPokeApi directory to your library / vendor folder and add:
Usage
Get a pokemon
To get all of the data for a specific
Filter down the data returned
To filter down the return data simply pass in the filter parameter
This will return:
Configuration
If you are having issues with your ssl cert being denied locally you can add this define in your project to bypass the ssl cert check.
define('PHP_POKE_API_BYPASS_SSL', true);
DO NOT TURN THIS ON IN PRODUCTION