PHP code example of janfish / ephone
1. Go to this page and download the library: Download janfish/ephone 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/ */
janfish / ephone example snippets
try {
$EPhone = new \Janfish\EPhone\Client();
$result = $EPhone->dial('158****4751', '182****6530', 'http://www.xxx.cn:8081/3d.php',['a'=>'4552','b'=>'123']);
print_r($result);
} catch (\Janfish\EPhone\Exception\ServerException $e) {
echo $e->getMessage() . $e->getCode() . PHP_EOL;
}