PHP code example of victor78 / yii2-sms-reg

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

    

victor78 / yii2-sms-reg example snippets


return [
    //...
    'components' => [
        'smsreg' => [
            'class' => Victor78\SmsRegComponent\Requestor::class,
            'api_key' => 'xxxxxxxxxxxxxxxxxxxx',
            'dev_key' => 'xxxxxxxxxxxxxxxxxxxx', //опционально
        ],
    ]
];

## Использование

Все публичные методы компонента носят имена аутентичных методов API согласно документации https://sms-reg.com/docs/API.html