2017 © Pedro Peláez
 

library pokemon-tcg-sdk-php

This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.

image

pokemon-tcg/pokemon-tcg-sdk-php

This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.

  • Monday, December 4, 2017
  • by mmonkey
  • Repository
  • 7 Watchers
  • 3 Stars
  • 761 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Pokémon TCG SDK

pokemontcg-developers on discord Build Status Code Climate, (*1)

This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io., (*2)

Installation

composer require pokemon-tcg/pokemon-tcg-sdk-php

Usage

Set ApiKey and options

See the Guzzle 7 documentation for available options., (*3)

Pokemon::Options(['verify' => true]);
Pokemon::ApiKey('<YOUR_API_KEY_HERE>');

Find a Card by id

$card = Pokemon::Card()->find('xy1-1');

Filter Cards via query parameters

$cards = Pokemon::Card()->where(['set.name' => 'generations'])->where(['supertype' => 'pokemon'])->all();

$cards = Pokemon::Card()->where([
    'set.name' => 'roaring skies',
    'subtypes' => 'ex'
])->all();

Get all Cards

$cards = Pokemon::Card()->all();

Paginate Card queries

$cards = Pokemon::Card()->where([
    'set.legalities.standard' => 'legal'
])->page(8)->pageSize(100)->all();

Get Card pagination information

$pagination = Pokemon::Card()->where([
    'set.legalities.standard' => 'legal'
])->pagination();

Find a Set by set code

$set = Pokemon::Set()->find('base1');

Filter Sets via query parameters

$set = Pokemon::Set()->where(['legalities.standard' => 'legal'])->all();

Paginate Set queries

$set = Pokemon::Set()->page(2)->pageSize(10)->all();

Get Set pagination information

$pagination = Pokemon::Set()->pagination();

Get all Sets

$sets = Pokemon::Set()->all();

Get all Types

$types = Pokemon::Type()->all();

Get all Subtypes

$subtypes = Pokemon::Subtype()->all();

Get all Supertypes

$supertypes = Pokemon::Supertype()->all();

Get all Rarities

$supertypes = Pokemon::Rarity()->all();

The Versions

04/12 2017

dev-master

9999999-dev

This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk pokemon tcg

04/12 2017

1.2.0

1.2.0.0

This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk pokemon tcg

30/11 2017

1.1.0

1.1.0.0

This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk pokemon tcg

30/11 2017

1.0.1

1.0.1.0

This is the Pokémon TCG SDK PHP implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk pokemon tcg

20/09 2016

1.0.0

1.0.0.0

This is the Pokémon TCG SDK PHP implementation It is a wrapper around the Pokémon TCG API of pokemontcg.io.

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk pokemon tcg