Download the PHP package csgt/notification-channel-chatapi without Composer
On this page you can find all versions of the php package csgt/notification-channel-chatapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download csgt/notification-channel-chatapi
More information about csgt/notification-channel-chatapi
Files in csgt/notification-channel-chatapi
Package notification-channel-chatapi
Short Description Notification channel Chatapi.
License MIT
Homepage https://github.com/csgt/laravel-notification-channels-chatapi
Informations about the package notification-channel-chatapi
Chatapi notifications channel for Laravel 5.4+
This package makes it easy to send [Chatapi notifications] with Laravel
Installation
Package Version | Laravel Version | Guzzle Version |
---|---|---|
5.x | 5 | 6 |
6.x | 6 | 7 |
7.x | 7,8,9 | 6, 7 |
Contents
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
You must install the service provider:
Setting up your Chatapi account
Add your URL, Token and Format ('form_params' default or 'json') in config/services.php
:
It is important to note that the CHATAPI_URL env variable must have a trailing slash.
Usage
Now you can use the channel in your via()
method inside the notification:
In order to let your Notification know which phone are you sending/calling to, the channel will look for the celular
attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForChatapi
method to your Notifiable model.
Available Message methods
ChatapiSmsMessage
from('')
: Accepts a phone to use as the notification sender.content('')
: Accepts a string value for the notification body.
Changelog
Please see CHANGELOG for more information what has changed recently.
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 notification-channel-chatapi with dependencies
illuminate/notifications Version ^7|^8|^9
illuminate/support Version ^7|^8|^9
illuminate/events Version ^7|^8|^9
illuminate/queue Version ^7|^8|^9
guzzlehttp/guzzle Version ^6|^7