PHP code example of danrovito / pokephp

1. Go to this page and download the library: Download danrovito/pokephp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

danrovito / pokephp example snippets


$api = new PokePHP\PokeApi;

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