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.
Table of contents
Download lakshmajim/twilio
More information about lakshmajim/twilio
Files in lakshmajim/twilio
Download lakshmajim/twilio
More information about lakshmajim/twilio
Files in lakshmajim/twilio
Please rate this library. Is it a good library?
Informations about the package twilio
Laravel - Twilio
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?
- This package is used to send sms to any mobile number.
- This uses Twilio API.
- It requires AccountSID and AuthToken, they can be generated by registrting @at Twilio
- after registration click on Account ,there you will be able to see authsid and authtoken.
- You have assigned a sender mobile number which can be found at Twilio,which is used to send Text Messages or MMS and ShortCodes etc.
INSTALLATION
- Download package form https://github.com/lakshmaji/twilio .
- OR YOU CAN RUN FOLLOWING COMMAND FROM TERMINAL
- With composer you can run this line composer require lakshmaji/twilio
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:
- If You are trying to implement SMS functionality with Twilio the you need to verify the list of destination mobile numbers at Twilio
- Before sending MESSAGE make sure that you have enabled GEO-PERMISSIONS at Twilio
Licence
@ MUTYALA ANANTHA LAKSHMAJI
All versions of twilio with dependencies
PHP Build Version
Package Version
The package lakshmajim/twilio contains the following files
Loading the files please wait ....