Download the PHP package m0by_cze/dmdiscordmsg without Composer
On this page you can find all versions of the php package m0by_cze/dmdiscordmsg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download m0by_cze/dmdiscordmsg
More information about m0by_cze/dmdiscordmsg
Files in m0by_cze/dmdiscordmsg
Download m0by_cze/dmdiscordmsg
More information about m0by_cze/dmdiscordmsg
Files in m0by_cze/dmdiscordmsg
Vendor m0by_cze
Package dmdiscordmsg
Short Description PHP Class To Send Discord message
License MIT
Homepage https://github.com/agorlov/discordmsg
Package dmdiscordmsg
Short Description PHP Class To Send Discord message
License MIT
Homepage https://github.com/agorlov/discordmsg
Please rate this library. Is it a good library?
Informations about the package dmdiscordmsg
Send message to Discord (php)
Very simple code to send single messages to discord channel.
This code was originally writen to send service messages about deploying my project to production.
How to Use
Composer
Execute:
Create example.php
:
Run it:
Check discord chanel (for tests), your message is there:
Good old require_once
-
Put Msg.php and DiscordMsg.php to your project:
- Check out how it works:
example.php
bash $ php example.php
## How to notify user
Thank to @bricecarbou (https://github.com/agorlov/discordmsg/issues/3)
To notify anybody by webhook, we need to use the "real" id of user (recover in discord with @<username>) and use $msg="<@id_recovered> ...
## How to get Webhook link
Open chanel preferences (if you have enough permissions):
![image](https://user-images.githubusercontent.com/2485728/43675882-27431cc0-97f0-11e8-8092-917494a87bd3.png)
Create Webhook:
![image](https://user-images.githubusercontent.com/2485728/43675886-33ca6872-97f0-11e8-93d9-1a48c35843a9.png)
All versions of dmdiscordmsg with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
ext-curl Version *
ext-curl Version *
The package m0by_cze/dmdiscordmsg contains the following files
Loading the files please wait ....