filter_list
Nothing found
-
key API administration expand_more
-
bolt Simple API expand_more
-
bolt Transactional SMS expand_more
-
campaign Promotional SMS expand_more
-
account_balance_wallet Credit balance expand_more
-
-
tune Advanced API expand_more
-
bolt Transactional SMS expand_more
-
campaign Promotional SMS expand_more
-
forum Channels expand_more
- account_balance_wallet Check credit balance
- sell Message price information
-
history Version 1.0 expand_more
-
bolt Transactional SMS expand_more
-
campaign Promotional SMS expand_more
-
-
-
hub Integration API expand_more
-
code_blocks PHP SDK expand_more
-
download Installation expand_more
-
mail Message expand_more
- tune Configurators
- fact_check Number checker
- schedule Schedulers
-
history Version 1.0 expand_more
-
download Installation expand_more
-
mail Message expand_more
-
send Sender expand_more
- public Country
-
-
-
password OTP API expand_more
-
outgoing_mail Email to SMS expand_more
-
block Blacklist expand_more
-
contacts Address book expand_more
-
payments Pricing expand_more
-
link URL shortener expand_more
Text of the message
The BulkGate\Sms\Message\Text class represents the object of the message text.
The constructor accepts two optional parameters. The first is the $text message template itself. The second is the field $variables that passes variables for the message template.
The text class supports adding of variables to the text, as seen in the previous example. The symbols <name> and <age> are replaced by appropriate values (<name> by John and <age> by 29) from the $variables field.
You can also set up the text using the text($text, array $variables) method, which accepts the same parameters as constructor.
Obtaining message
Was this page helpful?
Thank you for your feedback.