Download the PHP package carropublic/carromessenger without Composer
On this page you can find all versions of the php package carropublic/carromessenger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carropublic/carromessenger
More information about carropublic/carromessenger
Files in carropublic/carromessenger
Package carromessenger
Short Description :package_description
License MIT
Homepage https://github.com/carropublic/carromessenger
Informations about the package carromessenger
CarroMessenger
You can send WhatsApp messages and template message using Message bird and Twilio, SMS messages using Twilio and Telerivet using this package. You can create webhooks for programmable webhooks of Toky to handle incoming phone calls.
You need to prepare an array with service and channel (WhatsApp, SMS, etc) which you would like to use. Then call the sendMessage()
. You can see an example in the following
Installation
Via Composer
Usage
You need to set .env
values for each service that you would like to use.
Then, create an array to send out the message like the following. It's as simple as that.
The following services support for the error message and status report with programmable webhooks. You can read about each individual one by clicking the following list.
- MessageBird
- Twilio
- Telerivet
- Toky
For other services that are not listed above, you may need to rely on events.
Events
We are extending the Laravel's Notification to sent messages. Therefore, you can't see the success/error with an immediate response. In order to resolve this, we added an event name call MessageWasSent
. The package will be sent to an event every time you sent the messages. But, you have to set EVENT_IS_CALLED
as true
in your .env
. Then, you create a listener for that event and handle the result as your needs.
You can also use Laravel's Notification Event as well.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- author name
- All Contributors
License
license. Please see the license file for more information.