Download the PHP package discord-php-extended/discordphp-mtg without Composer
On this page you can find all versions of the php package discord-php-extended/discordphp-mtg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download discord-php-extended/discordphp-mtg
More information about discord-php-extended/discordphp-mtg
Files in discord-php-extended/discordphp-mtg
Download discord-php-extended/discordphp-mtg
More information about discord-php-extended/discordphp-mtg
Files in discord-php-extended/discordphp-mtg
Vendor discord-php-extended
Package discordphp-mtg
Short Description Magic: The Gathering library and bot for Discord, built on DiscordPHP, with card data from MTGJSON (mtgjson.com).
License MIT
Package discordphp-mtg
Short Description Magic: The Gathering library and bot for Discord, built on DiscordPHP, with card data from MTGJSON (mtgjson.com).
License MIT
Please rate this library. Is it a good library?
Informations about the package discordphp-mtg
DiscordPHP-MTG
A Magic: The Gathering API Library and bot for Discord, built using DiscordPHP.
Features
- Search cards by any MTG API filter (name, colors, type, set, format legality, …) and fetch a card by id
- Look sets up by name or block, and open a booster pack for a set
- Read the API reference lists: card types, subtypes, supertypes and game formats
- Rich card rendering for Discord: Components V2 container, mana/symbol emojis, plus buttons for the raw JSON, image, rulings, legalities, foreign names and set
- Ships as an installable slash-command bot (
/card_search), user-installable and usable anywhere
Requirements
- PHP 8.3 or higher
- Composer
Installation
-
Clone the repository:
- Install dependencies:
Usage
- Copy and rename
.env.exampleto.envand configure your bot token. -
Run the bot:
- Alternatively, package the bot into an executable binary:
As a library
MTG extends the DiscordPHP client, so the MTG repositories hang off it and every call returns a promise:
Pass mtg_api_key in the options array to send an X-Api-Key header for a higher rate limit.
Contributing
See CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License. See LICENSE.md for details.
All versions of discordphp-mtg with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
ext-pdo_sqlite Version *
ext-zlib Version *
team-reflex/discord-php Version * || dev-master
discord-php/http Version dev-master as 10.9.8
react/http Version ^1.9
ext-pdo_sqlite Version *
ext-zlib Version *
team-reflex/discord-php Version * || dev-master
discord-php/http Version dev-master as 10.9.8
react/http Version ^1.9
The package discord-php-extended/discordphp-mtg contains the following files
Loading the files please wait ...