Download the PHP package lefuturiste/monolog-discord-handler without Composer
On this page you can find all versions of the php package lefuturiste/monolog-discord-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lefuturiste/monolog-discord-handler
More information about lefuturiste/monolog-discord-handler
Files in lefuturiste/monolog-discord-handler
Download lefuturiste/monolog-discord-handler
More information about lefuturiste/monolog-discord-handler
Files in lefuturiste/monolog-discord-handler
Vendor lefuturiste
Package monolog-discord-handler
Short Description A simple monolog handler for support Discord webhooks
License MIT
Homepage https://github.com/lefuturiste/monolog-discord-handler
Package monolog-discord-handler
Short Description A simple monolog handler for support Discord webhooks
License MIT
Homepage https://github.com/lefuturiste/monolog-discord-handler
Please rate this library. Is it a good library?
Informations about the package monolog-discord-handler
Monolog discord handler
A simple monolog handler for support Discord webhooks
Dependencies
- PHP >= 8.1
- Monolog >= 3.0
If you want to use this lib with older version of PHP, install versions prior to 0.4
1. Installing
Easy installation via composer. Still no idea what composer is? Find out here here.
2. Usage
Push this handler to your Monolog instance:
Single webhook URL
Multiple webhook URLs
Use configuration
You can customize the default message and datetime format.
3. Run examples
To run the example, you need:
- Clone this repo
- Run
composer installat the root - Change directory into
examples - Run with the
DISCORD_WEBHOOK_URLenv var set:env DISCORD_WEBHOOK_URL=https://… php ./simple_usage.php
4. Contribute
composer installcp .env.example .env, for now we don't have unit tests.composer test- run
vendor/bin/phpstan analyse src -l 6to run the static analyzer.
TODO
- [x] upgrade to monolog 3.0
- [ ] upgrade to php 8.1
- [ ] use type safe feature of php 8.1
- [ ] delete outdated "units" tests that are in fact integration tests
- [ ] add simple units test that will test for interfaces
All versions of monolog-discord-handler with dependencies
PHP Build Version
Package Version
The package lefuturiste/monolog-discord-handler contains the following files
Loading the files please wait ...