SMSInterface
in
Interface for SMS classes.
Tags
Table of Contents
- getCarriers() : array<string|int, mixed>
- Get a list of carriers supported by the module. Returned as an array of associative arrays indexed by carrier ID and containing "name" and "domain" keys.
- getValidationType() : string
- Get validation type for phone numbers
- text() : void
- Send a text message to the specified provider.
Methods
getCarriers()
Get a list of carriers supported by the module. Returned as an array of associative arrays indexed by carrier ID and containing "name" and "domain" keys.
public
getCarriers() : array<string|int, mixed>
Return values
array<string|int, mixed> —getValidationType()
Get validation type for phone numbers
public
getValidationType() : string
Return values
string —text()
Send a text message to the specified provider.
public
text(string $provider, string $to, string $from, string $message) : void
Parameters
- $provider : string
-
The provider ID to send to
- $to : string
-
The phone number at the provider
- $from : string
-
The email address to use as sender
- $message : string
-
The message to send