PHP code example of coredev / laravel-globelabs

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

    

coredev / laravel-globelabs example snippets


'providers' => [
    CoreDev\LaravelGlobeLabs\GlobeServiceProvider::class,
],

'aliases' => [
    'Globe' => CoreDev\LaravelGlobeLabs\Globe::class,
],

use Globe;

Globe::send('phone_number', 'message', 'passphrase', 'app_id', 'app_secret', 'short_code');

//with optional mask name parameter (make sure your APP configured in GlobeLabs dashboard supports dynamic masked name)
Globe::send('phone_number', 'message', 'passphrase', 'app_id', 'app_secret', 'short_code', 'mask_name');