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.

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 sms

Cecula SMS


Introduction

Cecula SMS Package (also called Library) enables you to quickly integrate and send A2P and P2P Messages from your application.

How to Use

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

All versions of sms 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 cecula/sms contains the following files

Loading the files please wait ....