1. Go to this page and download the library: Download heyanlong/idiot 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/ */
heyanlong / idiot example snippets
use Idiot\Service;
use Idiot\Type;
$options = [
"conn" => "127.0.0.1:2181",
"path" => "com.alibaba.dubbo.service.user",
"version" => "1.0.0"
];
$service = new Service($options);
$data = $service->invoke('getUserById', [951]);