PHP code example of spitoglou / doluna-sms

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

    

spitoglou / doluna-sms example snippets


Route::get('smsSend/{message}', function ($message) {
    $recipient = new \Spitoglou\SMS\SMSRecipient('306973######'); //12 digit international number here (30 stands for Greece etc.)
    return \Spitoglou\SMS\SMSClass::SMSSend($recipient, $message);
});

/*
     |--------------------------------------------------------------------------
     | API KEY
     |--------------------------------------------------------------------------
     |
     | You will need to provide here the API key that you can generate from
     | the Doluna site, after you have registered.
     |
     */
    
    'dolunaAPIKey' => 'YourApiKeyHere',


php artisan vendor:publish