Download the PHP package laravel-notification-channels/intercom without Composer
On this page you can find all versions of the php package laravel-notification-channels/intercom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/intercom
More information about laravel-notification-channels/intercom
Files in laravel-notification-channels/intercom
Package intercom
Short Description Intercom Notifications Driver
License MIT
Homepage https://github.com/laravel-notification-channels/intercom
Informations about the package intercom
Intercom notifications channel for Laravel
This package makes it easy to send notifications using Intercom with Laravel.
Contents
- Installation
- Setting up the Intercom service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up the Intercom service
Add the followings to your config/services.php
Add your Intercom Token to .env
Usage
Now you can use the channel in your via()
method inside the notification:
Available methods
body('')
: Accepts a string value for the Intercom message bodyemail()
: Accepts a string value for the Intercom message typeemail
inapp()
: Accepts a string value for the Intercom message typeinapp
(default)subject('')
: Accepts a string value for the Intercom message body (using withemail
type)plain()
: Accepts a string value for the Intercom message plain templatepersonal()
: Accepts a string value for the Intercom message personal templatefrom('123')
: Accepts a string value of the admin's id (sender)to(['type' => 'user', 'id' => '321'])
: Accepts an array value for the recipient datatoUserId('')
: Accepts a string value for the Intercom message user by id recipienttoUserEmail('')
: Accepts a string value for the Intercom message user by email recipienttoContactId('')
: Accepts a string value for the Intercom message contact by id recipient
More info about fields read in Intercom API Reference
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
- Andrey Telesh
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of intercom with dependencies
guzzlehttp/guzzle Version ^6.3 || ^7.0
intercom/intercom-php Version ^3.2 || ^4.0
illuminate/notifications Version ~6.0 || ~7.0 || ~8.0 || ~9.0
illuminate/support Version ~6.0 || ~7.0 || ~8.0 || ~9.0