PHP code example of mvaliolahi / sms

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

    

mvaliolahi / sms example snippets



    $kavenegar = new Kavenegar(
        (new KavenegarConfig())
            ->setApiKey('123456')
            ->setSender('123456789')
    );

    $sms = new \Mvaliolahi\SMS($kavenegar);


    public function send($number, $message);