PHP code example of misaf / laravel-sms-gateway-textlocal
1. Go to this page and download the library: Download misaf/laravel-sms-gateway-textlocal 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/ */
misaf / laravel-sms-gateway-textlocal example snippets
use Misaf\LaravelSmsGateway\Facades\SmsGateway;
$response = SmsGateway::driver()->send([
'numbers' => '447123456789',
'sender' => 'Laravel',
'message' => 'Hello from Textlocal',
]);
SmsGateway::driver('textlocal')->send($data); // regardless of the default
SmsGateway::driver('textlocal')->request()->get('some/endpoint'); // any other endpoint