irajul/laravel-exotel

Laravel plugin to interaact with exotel APIs (unofficial)

2.0.0 2023-08-23 16:37 UTC

This package is auto-updated.

Last update: 2024-06-23 18:21:35 UTC


README

Laravel package to interact with exotel APIs (unofficial)

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require irajul/laravel-exotel

You can publish and run the migrations with:

php artisan vendor:publish --tag="exotel-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="exotel-config"

This is the contents of the published config file published at config/exotel.php ::

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,
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-exotel-views"

Usage

This package supports two type of usage.

  • If user wants to connect two calls without logging any activity then use below API:
    use Irajul/Exotel/Facade/Exotel;
    // Define the parameters
    $from = '1234567890';
    $to = '1234567891';

    // Perform the connectCall operation
    $response = Exotel::connectCall($from, $to);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.