Download the PHP package blood72/laravel-jandi without Composer
On this page you can find all versions of the php package blood72/laravel-jandi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-jandi
JANDI notification channel for Laravel 5, 6, 7
JANDI is business collaboration messenger tool made by Toss Lab, Inc.
This package is non-official and only provides a notification channel for JANDI incoming webhook connection.
Index
- Requirement
- Installation
- Configuration
- Usage
- Reference
- License
Requirement
- PHP >= 7.2
- Laravel 5.8+, 6. or 7.
Installation
Install using the composer.
Additional work required if Auto-Discovery is disabled.
add the service provider to the providers
array in config/app.php
.
also add this to the aliases
array to use JANDI notifier.
if you don't want to use JANDI notifier, follow the instructions below.
-
add disable auto-discovery code in
- add this code in register() method in your service provider.
Configuration
By default, this package supports only one webhook url.
you can publish a configuration file.
and you can customize like this. in this case, a request will be sent to each URL.
Usage
-
Message
-
to(): set a email for the Jandi team message (optional).
-
content(): set the content of the Jandi message.
create new object with content; __construct(), create()
-
color(): set the color of the attachment section.
it supports bootstrap 4 color scheme.
- attachment(): define an attachment for the message. you can add multiple.
-
-
Notification
-
notification override
you can use an abstract class defined. it requires definition of toJandi() method. -
send notification
-
by anonymous notifiable
- by notifiable model
to use this, must be defined.
-
-
-
Facade
It supports the JandiNotifier class as a 'Jandi' facade.
-
send(): you can send message simply.
-
it is sent based on the default route settings.
-
of course, it can be done in a simple string form.
- you can set other notification class if you don't want to use default one.
-
-
to(): you can specify the recipient URL(s).
-
by string
-
by multiple params
-
by array
you can set email when sending 1:1 chat for team chat webhook URL (paid team only). email does not validate in jandi, and to send together, it must be string.
-
by object
to use this, or must be defined. it can be defined as .if you want to set email, (or ) is required.
-
-
Reference
- JANDI incoming webhook guide and for team one
- Laravel official Slack notification channel
- Guilherme Pressutto's laravel-slack
... and based on a code written by @kwonmory
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-jandi with dependencies
guzzlehttp/guzzle Version ^6.0|^7.0
illuminate/notifications Version ^5.8|^6.0|^7.0