Download the PHP package ziming/laravel-crisp-whatsapp without Composer
On this page you can find all versions of the php package ziming/laravel-crisp-whatsapp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ziming/laravel-crisp-whatsapp
More information about ziming/laravel-crisp-whatsapp
Files in ziming/laravel-crisp-whatsapp
Package laravel-crisp-whatsapp
Short Description This is my package laravel-crisp-whatsapp
License MIT
Homepage https://github.com/ziming/laravel-crisp-whatsapp
Informations about the package laravel-crisp-whatsapp
Laravel Crisp WhatsApp
Send WhatsApp Messages or Notifications with Crisp Chat!
Support me
You can use my referral link to sign up for Crisp Chat. I get a small reward if you become a paid customer at the Essentials or Plus Plan.
I highly recommend Crisp Chat if you are looking for a chat support SaaS for your website. As it charges a flat monthly fee instead of charging by per seat. It has a very nice UI, powerful bot builder & healthy plugins ecosystem as well.
To use Whatsapp for Crisp, you will need to subscribe at the Essential or Plus plan as well
Side Note: Looking to integrate with Crisp in non WhatsApp ways? Check out my Laravel Crisp package too!
Installation
You can install the package via composer:
You may publish the config file with:
This is the contents of the published config file:
Quick Usage (More documentation in the future!)
Here are some examples on how you can use it in a laravel notification class.
Quick Example (Recommended as it greatly simplify things)
Detailed Example (If you want a lot more control over your whatsapp message)
Then in your model classes that can receive WhatsApp notifications, you can use the CanReceiveWhatsAppNotification
trait:
Below is an example:
Caching
Caching is enabled by default. You can disable it by setting the CRISP_WHATSAPP_ENABLE_CACHING
environment variable to false
.
When caching is enabled, the package will cache the message template for an hour. This is to reduce the number of API calls made to Crisp.
This package also uses the spatie/laravel-data
package to build the data objects. You may wish to refer its structure caching documentation too.
Why are the classes final?
This is selfish on my part, my hope is that it would incentivise you to make a pull request so that everyone would benefit. I will also get to know more about where my package is lacking especially in the early days of this library.
Testing
Sending whatsapp messages costs money. Hence there are no tests. So if there are issues, just create an issue to let me know or make a PR fix for it :)
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- ziming
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-crisp-whatsapp with dependencies
illuminate/contracts Version ^11.0||^12.0
spatie/laravel-data Version ^4.15
spatie/laravel-package-tools Version ^1.16