Download the PHP package tomlankhorst/hangouts-chat without Composer
On this page you can find all versions of the php package tomlankhorst/hangouts-chat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomlankhorst/hangouts-chat
More information about tomlankhorst/hangouts-chat
Files in tomlankhorst/hangouts-chat
Package hangouts-chat
Short Description Notifications from Laravel to Google Hangouts Chat
License MIT
Homepage https://github.com/tomlankhorst/hangouts-chat
Informations about the package hangouts-chat
Google Hangouts Chat notification channel for Laravel
This package makes it easy to send notifications using Google Hangouts Chat with Laravel 5.5+, 6.x and 7.x
Contents
- Installation
- Setting up the Google Hangouts Chat service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
Install this package with Composer:
Setting up the Google Hangouts Chat service
In order to send messages using bots, you need to setup a webhook for a room.
Usage
Now you can use the channel in your via()
method inside the notification:
Please look at Hangouts Chat Message Formats to understand how send the messages.
In order to let your Notification know which URL should receive the Webhook data, add the routeNotificationForHangoutsChat
method to your Notifiable model.
This method needs to return the URL where the notification Webhook will receive a POST request.
You can send to a dynamic Webhook URL on-fly using this syntax:
Available Message methods
data('')
: Accepts a JSON-encodable value for the Webhook body.query('')
: Accepts an associative array of query string values to add to the request.userAgent('')
: Accepts a string value for the Webhook user agent.header($name, $value)
: Sets additional headers to send with the POST Webhook.verify()
: Enable the SSL certificate verification or provide the path to a CA bundle
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
- Renan William Alves de Paula
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of hangouts-chat with dependencies
google/apiclient Version ^2.0
illuminate/notifications Version ~5.5 || ~6.0 || ~7.0
illuminate/support Version ~5.5 || ~6.0 || ~7.0
ext-json Version *