Download the PHP package guywarner/laravel-google-chat-alerts without Composer
On this page you can find all versions of the php package guywarner/laravel-google-chat-alerts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download guywarner/laravel-google-chat-alerts
More information about guywarner/laravel-google-chat-alerts
Files in guywarner/laravel-google-chat-alerts
Package laravel-google-chat-alerts
Short Description Send a message to GoogleChat
License MIT
Homepage https://github.com/guywarner/laravel-google-chat-alerts
Informations about the package laravel-google-chat-alerts
Quickly send a message to Google Chat
This package can quickly send alerts to Google Chat. You can use this to notify yourself of any noteworthy events happening in your app.
A hard fork of Laravel Slack Alerts by Spatie
Under the hood, a job is used to communicate with Google Chat. This prevents your app from failing in case Google Chat is down.
Want to send alerts to Slack instead? Check out laravel-slack-alerts.
Want to send alerts to GoogleChat instead? Check out laravel-discord-alerts.
Installation
You can install the package via composer:
You can set a GOOGLE_CHAT_ALERT_WEBHOOK
env variable containing a valid Google Chat webhook URL. You can learn how to get a webhook URL [in the Google Chat API docs](https://api.Google Chat.com/messaging/webhooks).
Alternatively, you can publish the config file with:
This is the contents of the published config file:
Usage
To send a message to Google Chat, simply call GoogleChatAlert::message()
and pass it any message you want.
Using multiple webhooks
You can also use an alternative webhook, by specify extra ones in the config file.
The webhook to be used can be chosen using the to
function.
Formatting
Markdown
You can format your messages with markup. Learn how in the Google Chat API docs.
Messages that @mention all users
You can use the same emoji codes as in Google Chat. This means custom emoji's are also supported.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please report to [email protected] or via Twitter DM @DigiGuyDev
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-google-chat-alerts with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^8.73|^9.0|^10.0|^11.0