Download the PHP package gajus/nexmore without Composer
On this page you can find all versions of the php package gajus/nexmore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gajus/nexmore
More information about gajus/nexmore
Files in gajus/nexmore
Package nexmore
Short Description Nexmore is Nexmo RESTful API wrapper.
License BSD-3-Clause
Homepage https://github.com/gajus/nexmore
Informations about the package nexmore
Nexmore
Nexmo offers high volume SMS and Voice APIs via REST and SMPP. Nexmore is Nexmo RESTful API wrapper.
Documentation
Set Nexmo API credentials:
Send SMS message
sms
method will throw an InvalidArgumentException
if either of the parameters is unknonw, missing or do not conform to the format requirements.
If at least one message is not delivered \gajus\nexmore\Error_Exception
exception will be thrown.
TTS (Text to Speech)
Identical to the sms
method, except that TTS service does not accept the sender ID (from parameter).
Inbound Events
Nexmo issues two types of callbacks:
Read the relavent sections of the documentation to learn how to setup the callback URL.
To catch either of these events, use \gajus\nexmore\Listener
class.
Beware that Nexmore normalises parametr names and converts whatever time input to UNIX timestamp. To understand the re-mapping implementation, refer to the Listener
class source code.
Delivery Receipt
Inbound message
To do
- Either to allow direct API calls or create interface for Account features.
Alternatives
If you don't like Nexmore implementation, please raise an issue.
The following are the known alternatives:
- https://github.com/aatishnn/NexmoAlert
- https://github.com/prawnsalad/Nexmo-PHP-lib
- https://github.com/mousems/SimpleNexmoSender
If you know more alternatives, please tell me and I will include them in the above list.