1. Go to this page and download the library: Download sykez/genusis-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/ */
use Sykez\GenusisSms\GenusisSmsChannel;
use Sykez\GenusisSms\GenusisSmsMessage;
use Illuminate\Notifications\Notification;
class SendSms extends Notification
{
public function via($notifiable)
{
return [GenusisSmsChannel::class];
}
public function toSms($notifiable)
{
return (new GenusisSmsMessage)->content("Hello there!");
}
}
public function toSms($notifiable)
{
return (new GenusisSmsMessage)->content("Hello there!")->to(01234567891);
}
public function routeNotificationForSms()
{
return $this->phone_number;
}
use Illuminate\Support\Facades\Notification;
Notification::route('sms', '01234567891')->notify(new App\Notifications\SendSms(['Hello again.']));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.