File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Discord Webhook lightweight library for PHP
4
4
5
+
5
6
Language: [ 🇺🇸 English] ( README.md ) , [ 🇵🇱 Polski] ( README.pl.md )
6
7
7
8
Discord Webhook Documentation: https://discordapp.com/developers/docs/resources/webhook#execute-webhook
8
9
9
10
## Requirements
10
11
12
+
11
13
Software you need to have installed before you can use this project:
12
14
13
15
** Local or dedicated server:**
14
16
15
17
They work almost the same way.
16
18
17
- - [ WAMP] ( http://www.wampserver.com/ ) — v3 or [ XAMPP] ( https://www.apachefriends.org )
19
+ + [ WAMP] ( http://www.wampserver.com/ ) — v3 or [ XAMPP] ( https://www.apachefriends.org )
18
20
19
21
Then you need the right PHP version. Below v7 won't work.
20
22
21
- - PHP — version 7.2.14+
23
+ + PHP — version 7.2.14+
22
24
23
25
## Installation
24
26
41
43
42
44
## License
43
45
44
- [ MIT] ( LICENSE )
46
+ [ MIT] ( https://github.com/m7rlin/DiscordWebhook/blob/master/ LICENSE)
Original file line number Diff line number Diff line change 7
7
8
8
require_once 'DiscordWebhook.php ' ;
9
9
10
- $ url = "https://discordapp.com/api/webhooks/536576089582075936/QkY4y6xDDlrPXXtnSXLiAOnIo961w6BXl1SLTE0bj-t0--A-P3thhos5tskW_lIhiRfG " ;
10
+ $ url = "__WEBHOOK_URL__ " ;
11
11
12
12
$ message = $ _POST ["content " ];
13
13
$ username = $ _POST ["username " ] ?? "www.magictm.com " ;
You can’t perform that action at this time.
0 commit comments