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
$card = Pokemon::Card()->find('xy1-1');
Filter Cards via query parameters
$cards = Pokemon::Card()->where(['set' => 'generations'])->where(['supertype' => 'pokemon'])->all();
$cards = Pokemon::Card()->where([
'set' => 'roaring skies',
'subtype' => 'ex'
])->all();
$cards = Pokemon::Card()->all();
$cards = Pokemon::Card()->where([
'page' => 5,
'pageSize' => 100
])->all();
$set = Pokemon::Set()->find('base1');
Filter Sets via query parameters
$set = Pokemon::Set()->where(['standardLegal' => 'true'])->all();
$sets = Pokemon::Set()->all();
$types = Pokemon::Type()->all();
$subtypes = Pokemon::Subtype()->all();
$supertypes = Pokemon::Supertype()->all();
Parameter
Type
id
string
name
string
nationalPokedexNumber
int
imageUrl
string
subtype
string
supertype
string
ability
Ability
ancientTrait
AncientTrait
hp
string
number
string
artist
string
rarity
string
series
string
set
string
setCode
string
retreatCost
array
text
array
types
array
attacks
array
weakness
array
resistance
array
Parameter
Type
code
string
name
string
series
string
totalCards
int
standardLegal
boolean
releaseDate
string
Parameter
Type
name
string
text
string
type
string
Parameter
Type
name
string
text
string
Parameter
Type
cost
array
name
string
text
string
damage
string
convertedEnergyCost
int
Parameter
Type
type
string
value
string
Parameter
Type
type
string
value
string