PHP code example of laravel-notification-channels / sms77

1. Go to this page and download the library: Download laravel-notification-channels/sms77 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/ */

    

laravel-notification-channels / sms77 example snippets


	// config/services.php
	...
	'sms77' => [
		'api_key' => env('SEVEN_API_KEY')
	],
	...
	



namespace App\Notifications;

use Illuminate\Notifications\Notification;
use NotificationChannels\SMS77\SMS77Channel;
use NotificationChannels\SMS77\SMS77Message;

class InvoicePaid extends Notification
{
    public function via($notifiable)
    {
        return [SMS77Channel::class];
    }

    public function toSms77() {
        return (new SMS77Message('Hallo!'))
        ->from('Max')
        ->debug();
    }
}