sideso / sms-message
SMS Message provides a base class for SMS messages and a default implementation for the Hablame.co API.
Requires
- php: ^7.2 || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.4 || ^7.0
- illuminate/notifications: ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
- illuminate/support: ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
Requires (Dev)
- mockery/mockery: ^1.3
- orchestra/testbench: ^4.0 || ^5.0 || ^6.0 || ^7.0
- phpunit/phpunit: ^8.0 || ^9.0 || ^10.0
This package is auto-updated.
Last update: 2025-01-25 04:59:50 UTC
README
This package provides a base class for SMS messages. It is intended to be used with the Hablame Package and future SMS providers.
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.
provider()
: Set the provider to be used to send the message.
tags()
: Set the tags to be used along with the message.
Available Events
SmsSent
: This event should be fired when the message is sent.