1. Go to this page and download the library: Download hhpack/typechecker-client 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/ */
hhpack / typechecker-client example snippets
hack
use HHPack\TypeChecker\TypeCheckerClient;
$client = new TypeCheckerClient(getcwd());
await $client->restart();
$result = await $client->check();
if ($result->isPassed()) {
echo "Passed!!", PHP_EOL;
} else {
echo "Failed!!", PHP_EOL;
}