dev-master
9999999-devMagic: The Gathering SDK for php
MIT
The Development Requires
by Guido Contreras Woda
Magic: The Gathering SDK for php
This is the Magic: The Gathering SDK PHP implementation. It is a wrapper around the MTG API of magicthegathering.io., (*2)
This library does not have any requirements., (*3)
Using composer:, (*4)
composer require mtgsdk/mtgsdk:dev-master
All class properties are camel-cased and documented through class DocBlocks. They respect the API's syntax., (*5)
NOTE: All properties are READ-ONLY. You cannot modify them., (*6)
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();
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Magic: The Gathering SDK for php
MIT