Download the PHP package ditsly/dits-sms-api without Composer

On this page you can find all versions of the php package ditsly/dits-sms-api. 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 dits-sms-api

DITS SMS API

DITS SMS API is build for DITS SMS - Bulk SMS Application For Marketing

Prerequisites

To run DITS SMS API you have to install DITS SMS Application on your server.

Installing

Via Composer

And Via Bash

Usage

Step 1:

If install DITS SMS API using Git Clone then load your DITS SMS API Class file and Use namespace.

If install DITS SMS API using Composer then Require/Include autoload.php file in the index.php of your project or whatever file you need to use DITS SMS API classes:.

Step 2:

set your API_KEY from https://sms.dits.ly/sms-api/info

Step 3:

Change the from Sender ID below. It can be your valid Sender ID

Step 4:

the number we are sending to - Any phone number

For multiple number please use Comma (,) after every single number.

You can insert maximum 100 numbers using comma in single api request.

You have to must include Country code at beginning of the phone number.

Step 5:

// SMS Body

// Unicode SMS

// Voice SMS

// Schedule SMS

// Create Plain/text SMS Body for request

// Create Unicode SMS Body for request

// Create Voice SMS Body for request

// Create MMS SMS Body for request

// Create Schedule SMS Body for request

Step 6:

Instantiate a new DITS SMS API request

Send SMS

Finally send your sms through DITS SMS API

Get Inbox

Get your all message

Get Balance

Get your account balance

Response

DITS SMS API return response with json format, like:

Status Code

Status Message
ok Successfully Send
100 Bad gateway requested
101 Wrong action
102 Authentication failed
103 Invalid phone number
104 Phone coverage not active
105 Insufficient balance
106 Invalid Sender ID
107 Invalid SMS Type
108 SMS Gateway not active
109 Invalid Schedule Time
110 Media url required
111 SMS contain spam word. Wait for approval

Authors


All versions of dits-sms-api with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-curl Version *
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 ditsly/dits-sms-api contains the following files

Loading the files please wait ....