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
Requires
- team-reflex/discord-php: ^10.18.25
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- laravel/pint: ^1.21
- phpunit/phpunit: ^9.4.4
- wyrihaximus/react-cache-redis: ^4.5
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
-
Clone the repository:
git clone https://github.com/discord-php-extended/discordphp-mtg.git cd DiscordPHP-MTG
-
Install dependencies:
composer install
Usage
- Copy and rename
.env.example
to.env
and configure your bot token. - Run the bot:
php bot.php
- 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.