1. Go to this page and download the library: Download tonci14/laravel-eurosms 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/ */
use EuroSms;
EuroSms::send('+421900123456', 'Ahoj, toto je testovacia správa.');
EuroSms::sendAsync(
'+421900123456',
'Toto ide cez queue',
locale: null,
queue: 'messaging',
userId: auth()->id()
);
EuroSms::send('0900123456', 'Test');
// ➜ Invalid phone number format
EuroSms::send('+441234567890', 'UK test');
// ➜ Phone number region 'GB' is not allowed