PHPackages                             discord-php-extended/discordphp-mtg - 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. discord-php-extended/discordphp-mtg

ActiveLibrary[API Development](/categories/api)

discord-php-extended/discordphp-mtg
===================================

API Library for api.magicthegathering.io built on top of DiscordPHP.

v0.9.1(2mo ago)11[2 issues](https://github.com/discord-php/DiscordPHP-MTG/issues)MITPHPCI failing

Since Jul 26Pushed 3w agoCompare

[ Source](https://github.com/discord-php/DiscordPHP-MTG)[ Packagist](https://packagist.org/packages/discord-php-extended/discordphp-mtg)[ RSS](/packages/discord-php-extended-discordphp-mtg/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (16)Versions (30)Used By (0)

DiscordPHP-MTG
==============

[](#discordphp-mtg)

A Magic: The Gathering API Library and bot for Discord, built using [DiscordPHP](https://github.com/discord-php/DiscordPHP).

Features
--------

[](#features)

- Search for Magic: The Gathering cards
- User installable, usable anywhere

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Composer

Installation
------------

[](#installation)

1. Clone the repository:

    ```
    git clone https://github.com/discord-php-extended/discordphp-mtg.git
    cd DiscordPHP-MTG
    ```
2. Install dependencies:

    ```
    composer install
    ```

Usage
-----

[](#usage)

1. Copy and rename `.env.example` to `.env` and configure your bot token.
2. Run the bot: ```
    php bot.php
    ```
3. Alternatively, package the bot into an executable binary: ```
    composer run-script phpacker
    ```

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

License
-------

[](#license)

This project is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance70

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~9 days

Recently: every ~25 days

Total

29

Last Release

88d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7202504?v=4)[Valithor Obsidion](/maintainers/valzargaming)[@valzargaming](https://github.com/valzargaming)

---

Top Contributors

[![valzargaming](https://avatars.githubusercontent.com/u/7202504?v=4)](https://github.com/valzargaming "valzargaming (143 commits)")

---

Tags

discordphpmtg-apimtg-cardsphpreactphp

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/discord-php-extended-discordphp-mtg/health.svg)

```
[![Health](https://phpackages.com/badges/discord-php-extended-discordphp-mtg/health.svg)](https://phpackages.com/packages/discord-php-extended-discordphp-mtg)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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