Download the PHP package callr/sdk-php without Composer

On this page you can find all versions of the php package callr/sdk-php. 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 sdk-php

PHP SDK for CALLR API

JSON-RPC 2.0 PHP class, to use with CALLR API.

Composer

You should use Composer (https://getcomposer.org/) to manage your PHP dependencies. If you do not have a composer.json file yet, create one at the root of your project, download Composer, and launch composer update.

The composer.json file should look like this:

Add all the libraries you need in composer.json. Do not forget to run composer update each time you edit the file.

Then you just need to include one file in your code:

Usage

Init

Login-as

If you want to log in as another sub-customer or sub-user (one you have access to), you can call the logAs method on the chosen authenticator :

Available authenticators are the classic login / password (sent through a BASIC http request) or the Api-Key. Both supports the Login-As feature.

Sending SMS

Without options

Method

Personalized sender

Your sender must have been authorized and respect the sms_sender format

Method

If you want to receive replies, do not set a sender - we will automatically use an SMS number

Method

Force GSM encoding

The default behaviour is to send your SMS with GSM 7-bit encoding. However, if your text contains a character that is not in the GSM 7-bit charset (Basic Character Set), we will send it as 16-bit UCS-2 (UNICODE) - using 2 bytes per character.

You can however force the encoding to be used at any time, using the force_encoding property.

If you force a GSM encoding, we will try to convert non-GSM characters to GSM ones. « becomes ", € becomes e, etc. The full mapping is available when calling the method sms.get_gsm_charset_mapping.

Please note that whatever the encoding forced or used, you always send your text as a JSON string to our API, without any special processing. The charset is applied in our platform before sending to the carriers.

Method

Objects

Long SMS (availability depends on carrier)

We automatically handle concatenated SMS. The number of SMS parts billed will be set on the parts property of the SMS object. The object can be sent to you using Webhooks.

If your SMS is GSM 7-bit encoded:

If your SMS is UNICODE encoded:

Method

Specify your SMS nature (alerting or marketing)

Method

Objects

Custom data

Method

Objects

Delivery Notification - set URL to receive notifications

To receive delivery notifications (DLR), you have to subscribe to the webhook sms.mt.status_update (see below).

Method

Inbound SMS - set URL to receive inbound messages (MO) and replies

Do not set a sender if you want to receive replies - we will automatically use an SMS number.

To receive inbound messages (MO), you have to subscribe to the webhook sms.mo (see below).

Method

Get an SMS

Method

Objects


Webhooks

See our online documentation: http://www.callr.com/docs/webhooks/

Subscribe to webhooks

Method

Objects

List available webhooks

Method


REALTIME

Create a REALTIME app with a callback URL

App name format

Method

Objects

Start a REALTIME outbound call

Method

Objects

Inbound Calls - Assign a phone number to a REALTIME app

Method

Objects


DIDs

List available countries with DID availability

Method

Objects

Get area codes available for a specific country and DID type

Method

Objects

Get DID types available for a specific country

Method

Objects

Buy a DID (after a reserve)

Method

Objects

Cancel your order (after a reserve)

Method

Cancel a DID subscription

Method

View your store quota status

Method

Objects

Get a quote without reserving a DID

Method

*Objects/

Reserve a DID

Method

Objects

View your order

Method

Objects


Conferencing

Create a conference room

Method

Objects

Assign a DID to a room

Method

Create a PIN protected conference room

Method

Objects

Call a room access

Method


Media

List your medias

Method

Create an empty media

Method

Upload/Import a media

Method

Use Text-to-Speech

Method


CDR

Get inbound or outbound CDRs

Method

Objects


Broadcast messages to a target

Without options

Method

Objects


All versions of sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-curl Version *
ext-json 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 callr/sdk-php contains the following files

Loading the files please wait ....