Download the PHP package karacweb/kchat-notification-channel without Composer
On this page you can find all versions of the php package karacweb/kchat-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download karacweb/kchat-notification-channel
More information about karacweb/kchat-notification-channel
Files in karacweb/kchat-notification-channel
Package kchat-notification-channel
Short Description A Laravel Notification Channel for Infomaniak's kChat
License MIT
Homepage https://github.com/karacweb/kchat-notification-channel
Informations about the package kchat-notification-channel
Infomaniak's kChat Notifications Channel for Laravel
This package makes it easy to send notifications using kChat with Laravel 5.5+, 6.x, 7.x, 8.x, 9.x, 10.x
This package leverages Infomaniak's public API to send notification to kChat channels with Laravel 5.5+, 6.x, 7.x, 8.x, 9.x and 10.x
Contents
- Installation
- Setting up the kChat service
- Usage
- Available Message methods
- Retrieve the kChat channel ID
- Use Markdown in the message
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Next, if you're using Laravel without auto-discovery, add the service provider to config/app.php
:
Setting up the kChat service
- Create a token with the scope
kchat
- Retrieve the Url of your kChat instance, it should look like
https://your-team.kchat.infomaniak.com
. - Paste the token and your kChat base Url in your
config/services.php
file:
Usage
Now you can use the channel in your via()
method inside the notification:
Instead of using the to($channel_id)
method for specifying the channel ID you can also add the routeNotificationForKChat
method inside your Notifiable model. This method needs to return the channel ID.
Available Message methods
to(string $channel_id)
: The channel to send the message to.content(string $content)
: Content of the message (Markdown supported).commentTo(string $post_id)
: A post ID you wish to respond to.
Retrieve the kChat channel ID
Use Markdown in the message
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of kchat-notification-channel with dependencies
php Version >=7.3
guzzlehttp/guzzle Version ^6.3 || ^7.0
illuminate/notifications Version ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0
illuminate/support Version ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0