sideso/sms-message

SMS Message provides a base class for SMS messages and a default implementation for the Hablame.co API.

v1.1.2 2023-03-25 01:05 UTC

This package is auto-updated.

Last update: 2024-04-25 03:17:53 UTC


README

Latest Version on Packagist Total Downloads Software License

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.