Download the PHP package kiwilan/php-notifier without Composer
On this page you can find all versions of the php package kiwilan/php-notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-notifier
PHP Notifier

PHP Notifier is a package to send mails or notifications for Discord or Slack.
[!IMPORTANT] This package does not support push notifications or SMS (if you interested, a PR is welcome).
Installation
You can install the package via composer:
[!NOTE] For Laravel, you can use
kiwilan/notifier-laravelpackage.
Usage
This package offer a support for Discord and Slack webhooks, and emails with symfony/mailer.
- Discord: support message and rich embeds webhooks.
- Slack: support message and attachments webhooks (without legacy API support).
- Mail: support message and attachments with
symfony/mailer.
Discord
You can send simple message, with user and avatar. Default user and avatar will be webhook's name and avatar.
You can also send rich embeds.
Mail use symfony/mailer to send emails.
[!NOTE] If
htmlis not set,messagewill be used as HTML content. And ifhtmlis set but notmessage,htmlwill be used as plain text content withstrip_tagsmethod.
Multiple recipients can be added with to method.
You can add attachments with addAttachment method.
Slack
You can send simple message.
You can also send attachments.
HTTP
You can use http method to send HTTP request.
Client
HTTP requests use native stream context to send data, curl and guzzle can be used as option (default is stream).
[!WARNING] If you use
guzzle, you need to installguzzlehttp/guzzlepackage.
To know if request is successful, you can use isSuccess method.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ewilan Rivière
- All Contributors
License
The MIT License (MIT). Please see License File for more information.