PHP code example of devskyfly / yii-extension-calltouch

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

    

devskyfly / yii-extension-calltouch example snippets


 [
	 'calltouch'=>[
	 	'class'=>'devskyfly\yiiExtensionCallTouch\CallTouch',
	 	'access'=>[
	 		'id'=>9999,
	 		'node'=>1
	 	]
	 ]
 ]

$query=[
    'subject'=>'More test',
    'sessionId'=>0,
    'fio'=>'tester',
    'phoneNumber'=>'999999999',
    'email'=>'[email protected]',
    'comment'=>'text'
];
$calltouch=Yii::$app->calltouch;

$request=new Request();

$request->proxy_settings=[
    'http'=>'127.0.0.1:3128',
    'https'=>'127.0.0.1:3128'
];

return $calltouch->sendRequest($request,$query);