PHP code example of atog / phpokemon

1. Go to this page and download the library: Download atog/phpokemon 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/ */

    

atog / phpokemon example snippets

 php

= new \Atog\PHPokemon\Client();
$client->pokemon->find('bulbasaur'); // returns Atog\PHPokemon\Models\Pokemon
$client->pokemon->find(2); // returns Atog\PHPokemon\Models\Pokemon
$client->moves->find(15); // returns Atog\PHPokemon\Models\Moves