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.0(1mo ago)10[2 issues](https://github.com/discord-php/DiscordPHP-MTG/issues)MITPHP

Since Jul 26Pushed 3mo 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 1mo ago

READMEChangelog (10)Dependencies (10)Versions (29)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

28

—

LowBetter than 54% of packages

Maintenance63

Regular maintenance activity

Popularity2

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 ~21 days

Total

28

Last Release

53d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f85d19ae7440b91717206e5e67342bae2dcc1c8de0a6f4333bbb75b18212d0f?d=identicon)[valzargaming](/maintainers/valzargaming)

---

Top Contributors

[![valzargaming](https://avatars.githubusercontent.com/u/7202504?v=4)](https://github.com/valzargaming "valzargaming (139 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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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