Download the PHP package web2sms/sms without Composer
On this page you can find all versions of the php package web2sms/sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sms
Short Description Set of library provides easy implementing to send SMS from any applications written in the PHP language via WEB2SMS services
License Apache-2.0
Informations about the package sms
WEB2SMS SRL
WEB2SMS Composer
Introduction
The WEB2SMS PHP library provides easy access to the send SMS via WEB2SMS API from any applications written in the PHP language.
For more details, please do not hesitate to contact us - [email protected]
Compatibility
PHP 5.7.0 - 8.0.8
Installation
You can install the library via Composer. Run the following command:
URLs
- WEB2SMS platform : https://www.web2sms.ro/
- POSTPAID endpoint : https://www.web2sms.ro/send/message/
- PREPAID endpoint : https://www.web2sms.ro/prepaid/message/
Actions
-
Send SMS
To send one / a set of SMS ,
- Prepaid action URL : /prepaid/message/
- Postpaid action URL: /send/message/
- Method:
POST
An example
Parameters
- accountType : The "accountType" define the type of your account in WEB2SMS platform. WEB2SMS has two type of account, "postpaid" & "prepaid" . The prepaid defined as default account Type.
- apiKey : The "apiKey" is your unique ID to work with WEB2SMS API, this parameter is Mandatory.
- secretKey : "secretKey" is another unique ID to work with WEB2SMS API, this parameter is also Mandatory.
-
messages : The "messages" is your actual SMS. You can define one message to be send as SMS, or define a list of messages to be send to your destination. As is shown in above example, any message of the list is individual, and can have diffrent configuration, text content or even send in diffrent time.
-
sender : The "sender" is the actual number, what will sending the SMS to the destination phone number. The sender is an optional parameter, and the phone number on destination will be apear as what is defined in the Platform. if you have several predefined number in the platform, so you can pickup one of them as SMS sender.
- recipient : The "recipient" is the actual phone number of the SMS destination. This is a mandatory parameter.
- body : The "body" is the actual content of the SMS. The "body" is a mandatory parameter.
- scheduleDatetime : To set the date & time of SMS sending. By setting this option you will be able to define one / set of SMS to be sent in any interval of time in the future . The format of this parameter is like : Y-m-d H:i:s as Ex. 2021-12-01 08:59:30 . this parameter is optional.
- validityDatetime : To set a expire date & time for SMS sending. This is an optional parameter.
- callbackUrl : The "callBackUrl", is an URL from your website to sending the feedback for each individual SMS after SMS is send to the destination, to be informed about each individual SMS. This is an optional parameter.
- userData : "userData" is an string given by you, to be used in the reports generated in the WEB2SMS platform. this option is helping you to categorize the informations. As example if you sending to many SMS for diffrent events, you can choese a event title as userData to be apear in the reports
- visibleMessage : The "visibleMessage" option is to Hide & Show the SMS content in WEB2SMS platform, to protect the sensitive Data . you can set this parameter as TRUE | FALSE. as defulte the SMS content is apearing in the platform. this parameter is optional.
-
Error codes defination
- 536870913 : Internal web2SMS error
- 268435457 : No available account for the calling IP
- 268435463 : Associated account is disabled
- 268435462 : Associated account is missconfigured
- 268435464 : Internal web2SMS error while creating SMS Sender
-
268435458 : Parameter phone has a wrong format or it belongs to a GSM.Network that is not configured for the associated account!
- 268435466 : Phone number is black listed
- 268435520 : Phone number belongs to a GSN Network that is not configured for the associated account
- 268435460 : You’ve exceeded your monthly limit for SMS sending
- 268435488 : You are trying to schedule a SMS message outside the configured time interval restrictions
- 268435459 : Parameter message is empty! Empty message are not allowed
- 268435465 : Internal web2SMS error while scheduling a SMS
Techincal support
mail : [email protected]
Resources
( WEB2SMS Documentation )
All versions of sms with dependencies
ext-dom Version *