PHP code example of tomdewit / skymobile

1. Go to this page and download the library: Download tomdewit/skymobile 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/ */

    

tomdewit / skymobile example snippets


// config/app.php
'providers' => [
    ...
    Tomdewit\Skymobile\SkymobileServiceProvider::class,
],

// config/services.php
...
'Skymobile' => [
    'access_key' => env('Skymobile_ACCESS_KEY'),
    'originator' => env('Skymobile_ORIGINATOR'),
    'recipients' => env('Skymobile_RECIPIENTS'),
],
...
 php
use Tomdewit\Skymobile\SkymobileChannel;
use Tomdewit\Skymobile\SkymobileMessage;
use Illuminate\Notifications\Notification;

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

    public function toSkymobile($notifiable)
    {
        return (new SkymobileMessage("Your {$notifiable->service} was ordered!"));
    }
}