Download the PHP package nghia-kun/laravel-chat-api without Composer
On this page you can find all versions of the php package nghia-kun/laravel-chat-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nghia-kun/laravel-chat-api
More information about nghia-kun/laravel-chat-api
Files in nghia-kun/laravel-chat-api
Download nghia-kun/laravel-chat-api
More information about nghia-kun/laravel-chat-api
Files in nghia-kun/laravel-chat-api
Vendor nghia-kun
Package laravel-chat-api
Short Description Send messages to Google Chat via webhooks in Laravel
License MIT
Homepage https://github.com/bhnghia1012/laravel-chat-api
Package laravel-chat-api
Short Description Send messages to Google Chat via webhooks in Laravel
License MIT
Homepage https://github.com/bhnghia1012/laravel-chat-api
Please rate this library. Is it a good library?
Informations about the package laravel-chat-api
Laravel Chat API - Google Chat Webhook
Send messages to Google Chat spaces directly from your Laravel application using incoming webhooks.
Requirements
- PHP 8.1+
- Laravel 10 / 11 / 12
Installation
Laravel auto-discovers the service provider and facade automatically.
Publish the config file (optional)
Configuration
Add the webhook URL to your .env file:
How to get the webhook URL: Open your Google Chat space, click the space name, go to Apps & integrations > Webhooks > Add webhook, then copy the generated URL.
Usage
Using the Facade
Send to a different webhook at runtime
Using dependency injection
Available Methods
| Method | Description |
|---|---|
sendMessage(string $message) |
Send a plain text message (supports basic Markdown) |
sendCard(string $title, string $body) |
Send a card with a header and text body |
sendAlert(string $title, string $message, string $level) |
Send a prefixed alert: ERROR, WARNING, INFO, SUCCESS |
to(string $webhookUrl) |
Override the webhook URL for one call (returns a cloned instance) |
License
MIT
All versions of laravel-chat-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
The package nghia-kun/laravel-chat-api contains the following files
Loading the files please wait ...