apolinux/kannel

kannel mo/mt basic

v0.7 2024-06-21 15:47 UTC

This package is auto-updated.

Last update: 2025-02-21 17:07:22 UTC


README

Send MT and Read MO

Send MT

Sends MT messages using function SendMt::send.

SendMt::send(string $url, string $username, string $password, string $from, string $to, string $text, string $smsc=null, array $params = [], float $timeout=60);

  • $url is the destination
  • $username and $password are the credentials
  • $from is the origin of message, usually the Shortcode
  • $to is the destination of message, the msisdn
  • $text is the content of message
  • $smsc optional. Specifies the name of SMSC center configured in kannel.
  • $params are optional values like charset, udh, flash.

Uses apolinux/curl library.

TODO

pending code of ReadMo class