PHPackages                             magiclegacy/mtgjson-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. magiclegacy/mtgjson-client

ActiveLibrary[API Development](/categories/api)

magiclegacy/mtgjson-client
==========================

PHP SDK client to get data from mtgjson.com.

1.2.0(3y ago)1531MITPHPPHP 7.4.\*|8.0.\*|8.1.\*

Since Sep 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MagicLegacy/mtgjson-client)[ Packagist](https://packagist.org/packages/magiclegacy/mtgjson-client)[ RSS](/packages/magiclegacy-mtgjson-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (11)Versions (10)Used By (0)

MtgJson Client for API V5
=========================

[](#mtgjson-client-for-api-v5)

[![Current version](https://camo.githubusercontent.com/e5bcac70712d3750a0730621b819c8bbad8878f3ace9251868a56f78797e5f26/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616769636c65676163792f6d74676a736f6e2d636c69656e742e7376673f6c6f676f3d636f6d706f736572)](https://packagist.org/packages/magiclegacy/mtgjson-client)[![Supported PHP version](https://camo.githubusercontent.com/8697e8e3158fb46a3df834d00a96661b9fef31f155eea65f1ba94287e6b29ace/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6f676f3d706870266c6162656c3d504850266d6573736167653d372e34253743382e30253743382e3126636f6c6f723d373737626234)](https://packagist.org/packages/magiclegacy/mtgjson-client)[![Coverage](https://camo.githubusercontent.com/049dc0896e7d0ef11077a8ce9c7fe7559e0b4bdd1549624e31e2a3367e20ab3a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d4d616769634c65676163795f6d74676a736f6e2d636c69656e74266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=MagicLegacy_mtgjson-client)[![Quality Gate Status](https://camo.githubusercontent.com/ae1c0fa18d1d1bc26cb09d321775e466ee277ce0e509f4aad40ba72f0da0e01b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d4d616769634c65676163795f6d74676a736f6e2d636c69656e74266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=MagicLegacy_mtgjson-client)[![CI](https://github.com/MagicLegacy/mtgjson-client/workflows/CI/badge.svg)](https://github.com/MagicLegacy/mtgjson-client/actions)

MtgJson Client to retrieve some information from MtgJson.com

Supported endpoints:

- `/SetList.json`
- `/{SetCode}.json`
- `/CardTypes.json`
- `/AtomicCards.json`
- `/LegacyAtomic.json`
- `/PauperAtomic.json`
- `/PioneerAtomic.json`
- `/ModernAtomic.json`
- `/StandardAtomic.json`
- `/VintageAtomic.json`

Currently NOT supported:

- `/EnumValues.json`
- `/Keywords.json`
- `/Legacy.json`
- `/Pioneer.json`
- `/Modern.json`
- `/Standard.json`
- `/Vintage.json`
- `/CompiledList`
- `/DeckList`

Composer
--------

[](#composer)

```
composer require magiclegacy/mtgjson-client
```

Usage in application
--------------------

[](#usage-in-application)

```
