Download the PHP package lakshmajim/twilio without Composer

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

Laravel - Twilio

Wiki on web

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

INDEX

Index Description
What it is - Introduction
Installation - Installing Twilio package
Laravel Integration - Integrating this package with Laravel application
Docs - Description of methods available and parameters etc Method Responses
Miscellaneous - Miscellaneous content regarding method calls
Invalid method calls - Invalid arguments (Not supported)
Sending SMS - A simple Examp to illustarte the using this package
Example with Laravel - Sample code in Laravel
Exception Handling - An Exception Handling mechanism to catch errors
Twilio - How to Get registered on Twilio to use free trail account
License - License

WHAT IT IS?


INSTALLATION

Run this command from the Terminal:


LARAVEL INTEGRATION

you need to add the service provider. Open app/config/app.php, and add a new item to the providers array.

Then, add a Facade for more convenient usage. In app/config/app.php add the following line to the aliases array:

Again do composer update


METHOD, AVAILABLE PARAMETERS AND RESPONSES

Method
The message_array parameters
PARAMETER DESCRIPTION
sender_id This is the key defined in ".env" file for auth_sid
sender_secret This is the key defined in ".env" file for auth_secret
sender This is the key defined in .env file for sender mobile number
reciver_mobile This is the receivers mobile number
media_url This is the "uri" for mutimedia
otp This key values associates with the otp
Responses
CODE DESCRIPTION
16000 Error due to all flags are set to false or no flag was set
16001 Error due to all flags were set to true
16002 No sms type was set witin the avialbel list of flag parameters
16003 Un handled error

MISCELLANEOUS

To send SMS
To send MMS
To send OTP
To send both SMS and MMS
INVALID METHOD CALLS

SENDING SMS

Example code for Laravel along with sample .env file

.env file

The code to use above ".env" file is given below


Handling Exceptions

In laravel we can easily handle the errors by using Handler.php (You can use custom Exception Handlr too)


TWILIO TRAIL ACCOUNT USAGE:


Licence

MIT License (MIT)

@ MUTYALA ANANTHA LAKSHMAJI


All versions of twilio with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
twilio/sdk Version ^4.10
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 lakshmajim/twilio contains the following files

Loading the files please wait ....