An open API service indexing awesome lists of open source software.

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

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.