Download the PHP package mvkaran/exotel without Composer

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

Exotel PHP Client Library

Exotel PHP client library for use with Composer package dependency manager

Installation

The package can be installed by running a simple require command from your project's root or by manually adding it to your composer.json file


Usage

Before making any calls / sms through the library, you need to initialize the client with your Sid and Token. You can get these from the API menu under Settings in your Exotel account.


Connect Two Numbers

This is the feature which implements number masking. First, the number in from is dialled. Once they receive, the number in to is dialled and connected. Both the parties see the number which is mentioned in caller_id (which needs to be one of your Exophones in your account)

The $result will be an associative array with keys mentioned in Call


Connect Call to Flow or App

With this feature, you can first make an outbound call to a customer (to) and when they receive, connect the call to a Flow / App in your Exotel account (with App ID app_id)

The $result will be an associative array with keys mentioned in Call


Get Details of a Call

You can get the details of a call using the Sid of the Call that you received in response when a Call was initiated.

The $result will be an associative array with keys mentioned in Call


Send a SMS

The $result will be an associative array with keys mentioned in SMSMessage


Get Details of a SMS

You can get the details of a SMS using the Sid of the SMS that you received in response when a SMS was sent.

The $result will be an associative array with keys mentioned in SMSMessage


Exceptions

The library raises a few exceptions when errors occur. You can catch these exceptions in your application and handle them.

ExotelException\InsufficientParametersException Occurs when any of the above library methods have not been passed with the mandatory fields.

ExotelException\RateLimitExceededException Occurs when the API rate limits (default of 200 per minute for all APIs) exceeded for your account. When this exception occurs, retry with your request after some time.

ExotelException Any other exception that is thrown by the API


Reference

The following section lists the keys in the Call and SMSMessage array that is returned for call and sms methods respectively

Call

Key Description
Sid The unique identifier for this call
ParentCallSid Unused
DateCreated Time of creation of this resource in YYYY-MM-DD HH:mm:ss format.
DateUpdated Time of last update of this resource in YYYY-MM-DD HH:mm:ss format.
AccountSid The SID of the account on whose behalf this call was made.
To Phone number
From Phone number
PhoneNumberSid Exophone that was used to make the call.
Status Status of the call
StartTime Start time of call in YYYY-MM-DD HH:mm:ss format. (UTC +5:30)
EndTime End time of call in YYYY-MM-DD HH:mm:ss format. (UTC +5:30)
Duration Duration of the call in seconds.
Price Price of the call in Indian Rupees. (INR)
Direction Indicates the direction of the call.
AnsweredBy N/A
ForwardedFrom N/A
CallerName N/A
RecordingUrl URL where the call recording is stored.
Uri The URI for this resource, relative to the base URL.
CallType Type of call

SMSMessage

Key Description
Sid Unique identifier of the resource
DateCreated Time of creation of this resource in YYYY-MM-DD HH:mm:ss format. (UTC +5:30)
DateUpdated Time of last update of this resource in YYYY-MM-DD HH:mm:ss format. (UTC +5:30)
DateSent Time when SMS was sent in YYYY-MM-DD HH:mm:ss format. (UTC +5:30)
AccountSid SID of the account from which the SMS was sent
To The number to which the SMS was sent
From The Exophone or SMS ID from which the SMS was sent
Body URL-encoded string of the SMS body
Status Status of SMS
Direction Direction of the SMS
Price Price of the SMS in Indian Rupees (INR)
ApiVersion API version used to serve this resource
Uri The URI for this resource, relative to the base URL.

More Information

For more information regarding terminologies or applets, please check out the official API documentations at http://support.exotel.in/support/solutions/folders/92360


Errors

If you come across any errors / exceptions while using this library which is not mentioned here, please create an issue on GitHub or report them to us at [email protected]


Contribute

Feel free to contribute to this library by forking it. Pull requests are encouraged!


Change Log

Version Changes
1.0.0 Initial release
1.1.0 Methods return an associative array instead of a JSON string

All versions of exotel with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.2
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 mvkaran/exotel contains the following files

Loading the files please wait ....