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


// config/services.php
'ippanel' => [
    'username' => env('SMS_GATEWAY_IPPANEL_USERNAME'),
    'password' => env('SMS_GATEWAY_IPPANEL_PASSWORD'),
    'base_url' => env('SMS_GATEWAY_IPPANEL_BASE_URL', 'https://ippanel.com/'),
],

use Misaf\LaravelSmsGateway\Facade\SmsGateway;

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

$request = SmsGateway::driver('ippanel')->request();