Download the PHP package mp091689/turbosms without Composer
On this page you can find all versions of the php package mp091689/turbosms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mp091689/turbosms
More information about mp091689/turbosms
Files in mp091689/turbosms
Package turbosms
Short Description Package for TurboSms gateway based on SQL connection
License MIT
Homepage https://github.com/mp091689/TurboSms
Informations about the package turbosms
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Usage
Create new instance of TurboSms lib
to send sms, check status, receive list, delete scheduled sms.
TurboSms server is 94.249.146.189
, database users
, the table name same as
login of gateway connection.
Sending
Send sms to specified number with specified text.
Returns an object that contains params of sent message.
Arguments
number - string, contains phone number in international format only digits (38050123456789).
message - string, the text of sent message. Read the rules of composing messages.
sign - string, alpha-name must be registered on the service.
time - timestamp, the sms will be sent at the set time. The datetime format 'YYYY-MM-DD HH:MM'.
wappush - string, link WapPush, including http://
is_flash - boolean, flash flag of the message
Response
Returns an object with the parameters of the sent message.
-
The fields are populated by the server after the message is processed. If NULL is specified in the field values, then processing has not yet been performed.
-
Some phone models do not support wappush and flash messages.
- Date format for all datetime fields: YYYY-MM-DD HH:MM, the time zone based on connection.
Examples
Retrieving data
Find one instance of sms by id.
Returns an object of sms.
Arguments
id - integer, identifier of wanted instance.
Response
Examples
Find list of sms by conditions.
Returns an array of an objects.
Arguments
conditions - array, the associative array $key => $value
where the $key
is equals to column name in the table
and $value
is wanted string.
orderBy - array, the associative array $key => $value
where the $key
is equals to column name in the table for ordering
and $value
is method of ordering ASC/DESC
.
limit - integer, limit the number of records returned based on a limit value.
page - integer, for pagination, works only if limit is specified.
Response
Examples
Deleting
If for some reason you do not want to send a scheduled SMS you can simply delete it.
Arguments
sms - object, instance of SmsEntity.
Response
true
- success, false
- failed
Examples
DESCRIPTION OF STATUS FIELD VALUES
status | description |
---|---|
NULL | Message not yet processed |
ACCEPTD | Message accepted for processing |
ENROUTE | Message sent to mobile network |
DELIVRD | Message delivered to recipient |
EXPIRED | Message expired |
DELETED | Removed by operator |
UNDELIV | Not delivered |
REJECTD | Message rejected |
UNKNOWN | Unknown status |
DESCRIPTION OF ERROR_CODE FIELD VALUES
error_code | description |
---|---|
0 | No errors |
2 | Failed to save data, contact support if error persists |
23 | Errors in the recipient's number |
34 | Country of the recipient is not supported, additional activation is required |
36 | Failed to send the message, contact the support department if the error is repeated |
40 | There is not enough credit on the balance sheet |
46 | Number of recipient in the stop-list |
69 | Alpha-name (sender's signature) is prohibited by the administrator |
83 | Duplicate messages |
84 | Missing message text |
85 | Invalid alpha-name (sender's signature) |
86 | The text of the message contains forbidden words |
87 | Message text is too long |
88 | Your account is blocked for violations, contact the support department |
999 | Specific error of a particular operator, it is necessary to specify more |
Additional information
- Description of work with the TURBOSMS gateway using SQL connection link
RULES OF BROADCASTING: