discord-php-extended/discordphp-mtg

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

v0.5.0 2025-08-02 10:44 UTC

This package is auto-updated.

Last update: 2025-08-02 11:03:58 UTC


README

A Magic: The Gathering API Library and bot for Discord, built using DiscordPHP.

Features

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

Requirements

  • PHP 8.1 or higher
  • Composer

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

  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

See CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License. See LICENSE.md for details.