PHP code example of emrebbozkurt / laravel-verimor-sms

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

    

emrebbozkurt / laravel-verimor-sms example snippets


return [
    'username' => env('VERIMOR_USERNAME', '908501234567'),
    'password' => env('VERIMOR_API_KEY', 'xxxxxxx'),
    'custom_id' => uniqid()
    'datacoding' => '0',
    'valid_for' => '48:00',
];

$sms = Verimor::send('+905431231234', 'Hello');
$response = $sms->response();
$status = $sms->status();

$sms = Verimor::send('+905431231234', 'Hello', ['custom_id' => uniqid(), 'datacoding' => '0', 'valid_for' => '48:00']);
$response = $sms->response();
$status = $sms->status();
bash
    php artisan vendor:publish --provider="Emrebbozkurt\VerimorSms\VerimorServiceProvider"