PHP code example of cloud-castle / sms-services-laravel
1. Go to this page and download the library: Download cloud-castle/sms-services-laravel 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/ */
cloud-castle / sms-services-laravel example snippets
// Отправка СМС
// Первый параметр номер телефона абонента или массив номеров (не более 10)
// Второй параметр текст сообщения абоненту (абонентам)
CloudCastle\SmsServices\Facades\MobileService::sendSms('номер телефона', 'текст сообщения');
// Аутентификационный вызов с кодом подтверждения
\CloudCastle\SmsServices\Facades\MobileService::call('номер телефона');