PHP code example of hsntngr / laravel-jetsms

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

    

hsntngr / laravel-jetsms example snippets


JetSms::to(905*********)
    ->message('Test')
    ->send();

'providers' => [
   //...
   Hsntngr\JetSms\JetSmsServiceProvider::class,
   //...
]

php artisan vendor:publish --provider="Hsntngr\JetSms\JetSmsServiceProvider" --tag=config

'auth' => [
    'username' => 'hsntngr',
    'password' => 'secret',
    'originator' => 'laravel'
]

php artisan make:jetsms Welcome

 public function build()
    {
        return $this
            ->to(905*********)
            ->message('68796 numaralı rezervasyon iptal edildi');
    }

use App\Sms\Welcome;
use Hsntngr\JetSms\Facade\JetSms;


JetSms::send(new Welcome)

JetSms::to(905*********)
    ->send(new Welcome)


JetSms::to(905*********)
    ->message('Test')
    ->send();