Download the PHP package descom/sms-php without Composer
On this page you can find all versions of the php package descom/sms-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download descom/sms-php
More information about descom/sms-php
Files in descom/sms-php
Package sms-php
Short Description Build your SMS application with PHP, easy SMS sending and worldwide coverage
License MIT
Homepage https://www.descomsms.com
Informations about the package sms-php
PHP SMS sending
SMS Library for sending text messages to mobile numbers worldwide from your own application via Descom SMS gateway.
Create your free account at Descom SMS and buy credits for SMS sending when required.
Our API documentation is available here. Also, we will be happy to assist you at [email protected] for further info on your SMS project.
Installation
You can install it with composer:
Usage
Send single SMS
This is an example:
Send multiple SMS
You can send multiple SMS in one go, function addTo
:
or with an Array:
Check your account balance
The function getBalance
allows you to check your SMS balance, this is your credit available. Example:
Get list of senderID authorized
The function getSenderID
allows you get the list of senderID authorized. Example:
Setup your sender ID
Alphanumeric sender ID allows you to set your name or business brand as the sender ID. Use the function setSenderID
at Descom\Sms\Message
class
Note your sender ID should previously be added in your Descom SMS account setup.
Test your SMS sending application for free
Test your SMS sending application at no cost by using function setDryrun
in the class Descom\Sms\Sms
and set to true
Dryrun just simulates SMS sending; no message will be sent out and no SMS credit will be deducted from your account.
Examples
Examples available at folder Examples.