Download the PHP package carropublic/notifications without Composer
On this page you can find all versions of the php package carropublic/notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carropublic/notifications
More information about carropublic/notifications
Files in carropublic/notifications
Package notifications
Short Description A collections of notification channels and senders
License MIT
Informations about the package notifications
Notifications
Installation
Via Composer
Run the following vendor publish to publish Twillo config.
Usage
LaravelNotification
The following is the example usage of the package with Laravel's Notification.
Create Notification Class
Create Notifiable Class
Sending Notification from Notifiable Instance
Sending Notification from Anonymous Notifiable Instance
Sandbox Mode
How to enable SandBox Mode
- Register Closure to return if testing is enabled
\CarroPublic\Notifications\Senders\Sender::registerSandboxValidator
Example:
- Otherwise, use
NOTIFICATION_SANDBOX_ENABLE
to determine if running in sandbox mode. Defaultfalse
⛔️ Notes: If the closure is registered, the env will be ignored
How to bypass sandbox validator
- Register Closure to return if sandbox is enabled
\CarroPublic\Notifications\Senders\Sender::registerValidForSandbox
$to: the recipient the message will be sent to $type: the sender class
- LineSender
- TelerivetSender
- TwilioSender
- MailChannel (Since there is not MailSender, the MailChannel will be used instead)
Change log
Please see the changelog for more information on what has changed recently.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Carro
- All Contributors
License
Please see the license file for more information.
All versions of notifications with dependencies
illuminate/support Version ~9|~10|~11|~12
illuminate/collections Version ~9|~10|~11|~12
illuminate/notifications Version ~9|~10|~11|~12
linecorp/line-bot-sdk Version ^4.3|^7.3
twilio/sdk Version ^6|^7