Download the PHP package sideso/hablame without Composer
On this page you can find all versions of the php package sideso/hablame. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package hablame
Hablame SMS Notifications Channel for Laravel
This package makes it easy to send notifications using Hablame with Laravel 6.x, 7.x, 8.x and 9.x
Contents
- Contents
- Installation
- Setting up the hablame service
- Usage
- On-Demand Notifications
- Bulk Messages
- Available Message methods
- Available Events
- Changelog
- Testing
- Security
- Credits
- License
Installation
You can install this package via composer:
Setting up the hablame service
You may publish the config file and add your hablame token, api key and account number to your config/hablame.php:
Usage
You can use the channel in your via() method inside the notification:
In your notifiable model, make sure to include a routeNotificationForhablame() or routeNotificationForSMS() method, which returns a phone number.
On-Demand Notifications
Sometimes you may need to send a notification to someone who is not stored as a "user" of your application. Using the Notification::route method, you may specify ad-hoc notification routing information before sending the notification:
Bulk Messages
If you excpet to send bulk messages, you can use the following method to send a message to multiple recipients.
Available Message methods
content()
: Set a content of the notification message. This parameter should be no longer than 918 char(6 message parts).
sourceCode()
: Set the Source Code name to be used as origin.
requestProofOfDelivery()
: Set the request proof of delivery to be used as origin (Extra cost).
priority()
: Set the priority of the message. (True = Transactional, False = Marketing).
flash()
: Set the if the message should be flash. (True = Flash, False = Normal).
senDate()
: Set the date and time when the message should be sent. (Not used is priority is set to true).
withCallback()
: Set the callback function to be executed when the message is sent.
tags()
: Set the tags to be used to send the message.
Available Events
Sideso\SMS\SMSSent
: This event is fired when the message is sent.
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.
Credits
- Carlos Trujillo
- SIDESO
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of hablame with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^6.4 || ^7.0
illuminate/notifications Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
sideso/sms-message Version ^1.1.2