Download the PHP package cecula/sms without Composer
On this page you can find all versions of the php package cecula/sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sms
Cecula SMS
- Cecula SMS
- Introduction
- How to Use
- Installation
- How to Generate an API Key
- Loading Package into your Project
- Sending A2P SMS
- Sending P2P SMS
- Checking A2P SMS Balance
- Checking Sync Cloud Balance
- Error Response
Introduction
Cecula SMS Package (also called Library) enables you to quickly integrate and send A2P and P2P Messages from your application.
How to Use
- Install Cecula SMS using composer by following the instructions in the Installation section or clone from GitHub
- Login to the Cecula Developers Platform register your app and generate an API KEY
- Include or Require the Cecula class into your script
Installation
Install with composer
Clone from GitHub
How to Generate an API Key
Your API Key is first generated when you register an app. To register an app, Login to the Developers Dashboard, Navigate to Apps > Add, Type the name of your app and click Submit. The app will be registered and a new API Key will be generated. Copy the API key into your project. Click developer.cecula.com to get started.
Loading Package into your Project
If you installed installed app with composer use the code below to load package into your project
If you cloned from github, use the code below to load package into your project
Sending A2P SMS
To send SMS with alphanumeric identity to single or multiple contacts, use the code below:
Your response should look like this:
Sending P2P SMS
To send a message using numberic identity, use the code below:
Your response should look like this:
Checking A2P SMS Balance
To get your A2P SMS Balance, getA2PBalance method is used this way:
You should get a response like this:
Checking Sync Cloud Balance
To get your Sync Cloud Balance, getSyncCloudBalance method is used this way: This method requires no parameter:
You should get a response like this
Error Responses
In a case where the request fails due to one reason or another you should get an error response from the requested endpoint that looks like this:
The table below shows a list of error codes and their descriptions:
Error Code | Description |
---|---|
CE1001 | Missing Fields |
CE1002 | Empty Fields |
CE1003 | Origin cannot be longer than 11 characters |
CE1004 | A2P Message origin must be alphabets only or alphanumeric |
CE1005 | Message cannot be longer than 10 pages |
CE1007 | Cannot find the identity on Sync Cloud |
CE1008 | Origin is pending verification |
CE1009 | Account Unbound. Please Recharge Account and Contact Sales |
CE1010 | Numeric Originator must be between 5 - 16 digits long |
CE1011 | P2P Message originator must be numeric |
CE1012 | Origin is not verified |
CE1013 | Sync App is Offline. Please check device |