PHP code example of socialconnect / sms

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

    

socialconnect / sms example snippets


use SocialConnect\Common\Http\Client\Curl;
use SocialConnect\SMS\ProviderFactory;

   'smsru' => array(
                'appId' => 12345
            )
        )
    ),
    new Curl()
);

/** @var \SocialConnect\SMS\Provider\SMSRU $provider */
$provider = $service->factory('smsru');

$provider->send('+79999999', 'Hello, World!');

var_dump($provider->getBalance());
bash
php composer.phar install