Download the PHP package hafael/totalvoice-notification-channel without Composer
On this page you can find all versions of the php package hafael/totalvoice-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hafael/totalvoice-notification-channel
More information about hafael/totalvoice-notification-channel
Files in hafael/totalvoice-notification-channel
Package totalvoice-notification-channel
Short Description TotalVoice Notification Channels for Laravel 5.3+
License MIT
Homepage https://github.com/hafael/totalvoice-notification-channel
Informations about the package totalvoice-notification-channel
TotalVoice notifications channel for Laravel 5.3+
This package makes it easy to send TotalVoice Notifications with Laravel 5.3+.
Contents
- Installation
- Setting up the TotalVoice service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Add the service provider (only required on Laravel 5.4 or lower):
Setting up the TotalVoice service
Add your TotalVoice Access Token to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
You can also send an TTS (text-to-speech) audio call:
Or create a TotalVoice audio call from .mp3 file url:
In order to let your Notification know which phone are you sending/calling to, the channel will look for the phone_number
attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForTotalVoice
method to your Notifiable model.
Available Message methods
TotalVoiceSmsMessage (SMS)
provideFeedback(false)
: Wait for recipient feedback.multipart(false)
: Supports SMS with > 160 < 16,000 char. Sends multiple sms up to 160char to the same number.scheledule(new \DateTime())
: date and time to schedule the sms delivery. null as default sends immediately.content('')
: Accepts a string value for the notification body.
TotalVoiceTtsMessage (Text-to-speech audio call)
provideFeedback(false)
: Wait for recipient feedback.fakeNumber(null)
: Accepts a phone to use as the notification sender.recordAudio(false)
: Save the call.detectCallbox(false)
: Automatically disconnects within 3 seconds if it falls into the mailbox (vivo, claro, tim, oi).speed(0)
: From -10 to 10. When -10=very slow, 0=normal and 10=very fast.voiceType('br-Vitoria')
: language-Character acronym who will speak.content('')
: Accepts a string value for the notification body.
TotalVoiceAudioMessage (.mp3 audio call)
provideFeedback(false)
: Wait for recipient feedback.fakeNumber('+5521999999999')
: Accepts a phone to use as the notification sender.recordAudio(false)
: Save the call.detectCallbox(false)
: Automatically disconnects within 3 seconds if it falls into the mailbox (vivo, claro, tim, oi).content('http://foooo.bar/audio.mp3')
: Accepts an .mp3 file url for the call.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Rafael
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of totalvoice-notification-channel with dependencies
total-voice/php-client Version 1.*
illuminate/notifications Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.0.*
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.0.*
illuminate/events Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.0.*
illuminate/queue Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.0.*