PHP code example of mix / sync-invoke
1. Go to this page and download the library: Download mix/sync-invoke 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/ */
mix / sync-invoke example snippets
$dialer = new \Mix\SyncInvoke\Client\Dialer();
$client = $dialer->dial(9505);
$data = $client->invoke(function () {
$obj = new Hello();
return [1, 2, 3, $obj];
});
var_dump($data);