This is the Magic: The Gathering SDK PHP implementation. It is a wrapper around the MTG API of magicthegathering.io.
This library does not have any requirements.
Using composer:
composer require mtgsdk/mtgsdk:dev-master
All class properties are camel-cased and documented through class DocBlocks. They respect the API's syntax.
NOTE: All properties are READ-ONLY. You cannot modify them.
name
multiverseid
layout
names
manaCost
cmc
colors
type
supertypes
subtypes
rarity
text
flavor
artist
number
power
toughness
loyalty
variations
watermark
border
timeshifted
hand
life
reserved
releaseDate
starter
rulings
foreignNames
printings
originalText
originalType
legalities
source
imageUrl
set
setName
id
code
name
gathererCode
oldCode
magicCardsInfoCode
releaseDate
border
type
block
onlineOnly
booster
mkmId
mkmName
version
releaseDate
details
$card = Card::find(386616);
$cards = Card::where(['set' => 'ktk'])->where(['subtypes' => ['warrior', 'human']])->all();
$cards = Card::all();
$cards = Card::where(['page' => 5, 'pageSize' => 30])->all();
$cards = Card::where(['page' => 5])->where(['pageSize' => 30])->all();
$set = Set::find('ktk');
$sets = Set::all();
$sets = Set::where(['name' => 'khans'])->all();
$types = Type::all();
$subtypes = Subtype::all();
$supertypes = Supertype::all();
$changelogs = Changelog::all();
- Fork it ( https://github.com/[my-github-username]/mtg-sdk-php/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request