PHPackages                             fabrn/ygoprodeck-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. fabrn/ygoprodeck-client

ActiveLibrary[API Development](/categories/api)

fabrn/ygoprodeck-client
=======================

Modern PHP Client for YgoProDeck API

1.0.0(2y ago)019MITPHPPHP ^8.1

Since Dec 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Fabrn/ygoprodeckclient)[ Packagist](https://packagist.org/packages/fabrn/ygoprodeck-client)[ RSS](/packages/fabrn-ygoprodeck-client/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

YgoProDeck API PHP Client
=========================

[](#ygoprodeck-api-php-client)

Modern PHP client for the [YgoProDeck API](https://ygoprodeck.com/api-guide/) using PHP 8.1 and cURL.

Install using Composer
----------------------

[](#install-using-composer)

```
composer require fabrn/ygoprodeckclient
```

Using the client
----------------

[](#using-the-client)

The main entrypoint for the client is the `YgoProDeckClient\Client` class. From this point, you can access resource-specific clients using **public properties** :

```
$client = new Client();

$response = $client->cards->getAll();
```

If you give no parameter for the `Client` instance, you get it with default parameters, which are :

- Language : en
- Version : v7 (note that this client has be designed for v7)

In order to configure yourself the client, just give the configuration using an array to the `Client` instance :

```
$client = new Client([
    Client::PARAM_LANGUAGE => Language::French->value /* fr */,
    Client::PARAM_API_VERSION => 'v7'
]);
```

Each available language can be accessed with the `YgoProDeckClient\Enum\Language` enum. These are :

- French
- Portuguese
- German
- Italian

> Note that card images will remain in English.

Resource clients
----------------

[](#resource-clients)

- [Cards](./docs/clients/cards.md)
- [Card sets](./docs/clients/card_sets.md)
- [Archetypes](./docs/clients/archetypes.md)
- [Random cards](./docs/clients/random_cards.md)

Rate limiting
-------------

[](#rate-limiting)

This API sets a rate limit to **20 requests per 1 second**. This client does not support rate limiting *yet*. Make sure to not exceed this rate limit, otherwise **your IP may get blacklisted**.

Important note on card images
-----------------------------

[](#important-note-on-card-images)

As you will see by using the API, card images are delivered using the URL "". As mentioned on the documentation, please **store images on your side** in order not to flood their website. Otherwise you may also **get your IP blacklisted**.

License and legal notice
------------------------

[](#license-and-legal-notice)

This package is available under [MIT license](https://choosealicense.com/licenses/mit/).

Also note that YgoProDeckClient isn't endorsed by Konami or event YgoProDeck and doesn't reflect the views or opinions of neither of them. Every information available through this client, including card images, the attribute, level/rank and type symbols, and card text, is copyrighted by 4K Media Inc, a subsidiary of Konami Digital Entertainment, Inc.

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dda17035387c9e23197486ae1f3f284562522294b267caf861fcc2eb05cfbe0?d=identicon)[Fabrn](/maintainers/Fabrn)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fabrn-ygoprodeck-client/health.svg)

```
[![Health](https://phpackages.com/badges/fabrn-ygoprodeck-client/health.svg)](https://phpackages.com/packages/fabrn-ygoprodeck-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
