PHP code example of jcsofts / laravel-messente

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

    

jcsofts / laravel-messente example snippets


'providers' => [
    // Other service providers...

    Jcsofts\LaravelMessente\MessenteServiceProvider::class,
],

use Jcsofts\LaravelMessente\Facade\Messente;

'aliases' => [
    ...
    'Messente' => Jcsofts\LaravelMessente\Facade\Messente::class,
],

$app->register(Jcsofts\LaravelMessente\MessenteServiceProvider::class);

try{
        $mid=Messente::send('Hello word', '+8618903859445');
        echo $mid;
    }catch(Exception $e){
        echo $e->getMessage();
    }

try{
        $messageId=Messente::send('Hello word', '+8618903859445');
        echo $messageId;
    }catch(Exception $e){
        echo $e->getMessage();
    }

$messente = app('Messente');

$messageId=$messente->send('Hello word', '+8618903859445');
bash
mkdir config
cp vendor/jcsofts/laravel-messagete/config/messente.php config/messente.php
bash
php artisan vendor:publish