PHP code example of gadimlie / sms-bridge

1. Go to this page and download the library: Download gadimlie/sms-bridge 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/ */

    

gadimlie / sms-bridge example snippets


return [
    'default' => 'figensoft',
    'providers' => [
        'figensoft' => [
            'driver' => \Gadimlie\SmsBridge\Drivers\FigensoftProvider::class,
            'config' => [
                'endpoint' => env('SMS_BRIDGE_ENDPOINT'),
                'username' => env('SMS_BRIDGE_USERNAME'),
                'password' => env('SMS_BRIDGE_PASSWORD'),
            ],
        ],
        // Add more providers as needed...
    ],
];

use Gadimlie\SmsBridge\SmsBridgeManager;

$sms = app(SmsBridgeManager::class);
$sms->send('+994501234567', 'Test message');

$sms->send('+994501234567', 'Test message', 'lsim');
bash
composer dump-autoload
bash
php artisan vendor:publish --tag=config