php-mtg / mtg-api-com-mtgjson-object
实现了php-mtg/mtg-api-com-mtgjson-interface库的库
7.0.5
2024-07-31 15:16 UTC
Requires
Requires (Dev)
- dev-master
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.1.16
- 6.1.15
- 6.1.14
- 6.1.13
- 6.1.12
- 6.1.11
- 6.1.10
- 6.1.9
- 6.1.8
- 6.1.7
- 6.1.6
- 6.1.5
- 6.1.4
- 6.1.3
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.1
- 6.0.0
- 5.2.0
- 5.0.0
- 4.1.0
- 4.0.0
- 3.4.15
- 3.4.14
- 3.4.13
- 3.4.12
- 3.4.11
- 3.4.10
- 3.4.9
- 3.4.8
- 3.4.7
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.2.0
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.26
- 3.0.25
- 3.0.24
- 3.0.23
- 3.0.22
- 3.0.21
- 3.0.20
- 3.0.19
- 3.0.18
- 3.0.17
- 3.0.16
- 3.0.15
- 3.0.14
- 3.0.13
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
This package is auto-updated.
Last update: 2024-08-31 13:34:04 UTC
README
实现了php-mtg/mtg-api-com-mtgjson-interface库的库。
安装
此库的安装通过composer完成,所有类的自动加载都通过它们的自动加载器完成。
- 从他们的网站下载
composer.phar
。 - 然后运行以下命令将此库作为依赖项安装
php composer.phar require php-mtg/mtg-api-com-mtgjson-object ^7
基本用法
此库可以使用以下方式使用
use PhpMtg\Mtgjson\MtgjsonComApiEndpoint;
/* @var $client \Psr\Http\Client\ClientInterface */
$endpoint = new MtgjsonComApiEndpoint($client);
$collection = $this->_endpoint->getSetList();
foreach($collection->getSets() as $setResume)
{
/** @var \PhpMtg\Mtgjson\MtgjsonComApiSetMetaInterface $meta */
$meta = $this->_endpoint->getSet($setResume->getCode());
$set = $meta->getSet();
// do something to set
}
许可证
MIT(见许可证文件)。