PHP code example of alishojaeiir / smschi

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

    

alishojaeiir / smschi example snippets


// In your providers array.
'providers' => [
...
/*
 * Package Service Providers...
 */
 
Alishojaeiir\Smschi\SmschiServiceProvider::class,
/*
 * Application Service Providers...
 */
...
],

// In your aliases array.
'aliases' => [
...
'smschi' => Alishojaeiir\Smschi\SmschiFacade::class,
],

// Eg. if you want to use parsasms.
'default' => 'parsasms',

'drivers' => [
        'parsasms' => [
            'apiUrl' => "http://api.smsapp.ir/v2/sms/",
            'apiKey' => "api_key",
            'sender' => "sender number",
        ],
...
]

\smschi::prepare($receiver, $message)->send();