PHP code example of js0nvr / laravel-textmagic

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

    

js0nvr / laravel-textmagic example snippets


...
Onwwward\Textmagic\TextmagicServiceProvider::class,
...

...
'Textmagic' => Onwwward\Textmagic\Facade\Textmagic::class,
...

  $text = "This is a Textmagic test message";
  $numbers = ['01234567891', '01234567891', '01234567891'];
  
  Textmagic::trigger('messages','create', [
      'text' => $text,
        'phones' => $numbers
    ]);  
config/app.php
config/app.php