https://github.com/discord-php/discordphp-mtg
API Library for api.magicthegathering.io built on top of DiscordPHP
https://github.com/discord-php/discordphp-mtg
discordphp mtg-api mtg-cards php reactphp
Last synced: 2 months ago
JSON representation
API Library for api.magicthegathering.io built on top of DiscordPHP
- Host: GitHub
- URL: https://github.com/discord-php/discordphp-mtg
- Owner: discord-php
- License: mit
- Created: 2025-07-25T20:17:58.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2026-03-20T15:36:10.000Z (3 months ago)
- Last Synced: 2026-03-21T07:21:24.119Z (3 months ago)
- Topics: discordphp, mtg-api, mtg-cards, php, reactphp
- Language: PHP
- Homepage: https://discordphp.org
- Size: 129 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DiscordPHP-MTG
A Magic: The Gathering API Library and bot for Discord, built using [DiscordPHP](https://github.com/discord-php/DiscordPHP).
## Features
- Search for Magic: The Gathering cards
- User installable, usable anywhere
## Requirements
- PHP 8.1 or higher
- Composer
## Installation
1. Clone the repository:
```cmd
git clone https://github.com/discord-php-extended/discordphp-mtg.git
cd DiscordPHP-MTG
```
2. Install dependencies:
```cmd
composer install
```
## Usage
1. Copy and rename `.env.example` to `.env` and configure your bot token.
2. Run the bot:
```cmd
php bot.php
```
3. Alternatively, package the bot into an executable binary:
```powershell
composer run-script phpacker
```
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
## License
This project is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.