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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

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

RULES OF BROADCASTING:


All versions of turbosms with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mp091689/turbosms contains the following files

Loading the files please wait ....