PHP code example of irajul / laravel-exotel
1. Go to this page and download the library: Download irajul/laravel-exotel library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
irajul / laravel-exotel example snippets
return [
'exotel_configs' => [
[
'name' => 'default',
/*
* Exotel SID
*/
'exotel_sid' => env('EXOTEL_SID', ''),
/*
* Exotel Token
*/
'exotel_token' => env('EXOTEL_TOKEN', ''),
/*
* Exotel Key
*/
'exotel_key' => env('EXOTEL_KEY', ''),
/*
* Exotel Subdomain
*/
'exotel_subdomain' => env('EXOTEL_SUBDOMAIN', ''),
/*
* Exotel Caller ID
*/
'exotel_caller_id' => env('EXOTEL_CALLER_ID', ''),
],
],
/*
* The fully qualified class name of the media model.
*/
'exotel_model' => Irajul\Exotel\Models\Exotel::class,
];
use Irajul/Exotel/Facade/Exotel;
// Define the parameters
$from = '1234567890';
$to = '1234567891';
// Perform the connectCall operation
$response = Exotel::connectCall($from, $to);
bash
php artisan vendor:publish --tag="exotel-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="exotel-config"
bash
php artisan vendor:publish --tag="laravel-exotel-views"