PHP code example of davidcb / laravel-esendex

1. Go to this page and download the library: Download davidcb/laravel-esendex 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/ */

    

davidcb / laravel-esendex example snippets


Davidcb\Esendex\EsendexServiceProvider::class,

'Esendex' => Davidcb\Esendex\Facades\Esendex::class,

// Send an SMS
$result = LaravelEsendex::send('Sender', '555000000', 'This is the text of the SMS');

// Retrieve inbox messages
$messages = LaravelEsendex::latest();

// Get a message's status
$status = LaravelEsendex::messageStatus('123456');

// Get a message's body
$body = LaravelEsendex::getMessageBodyById('123456');

$ php artisan vendor:publish --provider="Davidcb\Esendex\EsendexServiceProvider"