PHP code example of crafted-systems / laravel-sms

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

    

crafted-systems / laravel-sms example snippets


(new SMS())->send('254712345678','Test SMS');

SMS::send('254712345678','Test SMS');

sms()->send('254712345678','Test SMS');

SMS::gateway('mygateway')->send('254712345678','Test SMS');

SMS::getBalance();

//or

SMS::gateway('mygateway')->getBalance();


sms()->getDeliveryReports(Request $request);

//or

sms()->gateway('mygateway')->getDeliveryReports(Request $request);
bash
php artisan vendor:publish --provider=CraftedSystems\\LaravelSMS\\SMSServiceProvider
bash
php artisan make:gateway MyGateway