PHP code example of aminembarki / smsadapter

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

    

aminembarki / smsadapter example snippets




use Smsadapter\Sms;
use Smsadapter\Adapter\Twilio As TwilioAdapter ;

$sms = new Sms();
$sms->setSmsAdapter(new TwilioAdapter());
$sms->authenticate(array('api_key'=>'xxxxxxxxxxx','api_secret'=>'xxxxxxxxxxx'));
$sms->sendMessage('xxxxxxxxxxx','xxxxxxxxxxx',"message sent from sms adapter Twilio Provider ");
bash
php composer.phar