PHP code example of bakr / laravel-smsmisr
1. Go to this page and download the library: Download bakr/laravel-smsmisr 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/ */
bakr / laravel-smsmisr example snippets
public function notifyUser(Request $request)
{
Smsmisr::send($request->phone, 'Welcome to our platform!');
return response()->json(['status' => 'sent']);
}
Smsmisr::schedule('201234567890', 'Don’t miss our event tomorrow!', now()->addDay());
bash
php artisan vendor:publish --tag=smsmisr-config