This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.
composer require pokemon-tcg/pokemon-tcg-sdk-php
See the Guzzle 7 documentation for available options.
Pokemon::Options(['verify' => true]);
Pokemon::ApiKey('<YOUR_API_KEY_HERE>');
$card = Pokemon::Card()->find('xy1-1');
$cards = Pokemon::Card()->where(['set.name' => 'generations'])->where(['supertype' => 'pokemon'])->all();
$cards = Pokemon::Card()->where([
'set.name' => 'roaring skies',
'subtypes' => 'ex'
])->all();
$cards = Pokemon::Card()->all();
$cards = Pokemon::Card()->where([
'set.legalities.standard' => 'legal'
])->page(8)->pageSize(100)->all();
$pagination = Pokemon::Card()->where([
'set.legalities.standard' => 'legal'
])->pagination();
$set = Pokemon::Set()->find('base1');
$set = Pokemon::Set()->where(['legalities.standard' => 'legal'])->all();
$set = Pokemon::Set()->page(2)->pageSize(10)->all();
$pagination = Pokemon::Set()->pagination();
$sets = Pokemon::Set()->all();
$types = Pokemon::Type()->all();
$subtypes = Pokemon::Subtype()->all();
$supertypes = Pokemon::Supertype()->all();
$supertypes = Pokemon::Rarity()->all();