PHP code example of misaf / laravel-sms-gateway-ippanel

1. Go to this page and download the library: Download misaf/laravel-sms-gateway-ippanel 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-ippanel example snippets


use Misaf\LaravelSmsGateway\Facades\SmsGateway;

$response = SmsGateway::driver()->send([
    'op' => 'send',
    'from' => '3000505',
    'to' => '09123456789',
    'message' => 'Hello from IPPanel',
]);

SmsGateway::driver('ippanel')->send($data);                     // regardless of the default
SmsGateway::driver('ippanel')->request()->get('some/endpoint'); // any other endpoint