1. Go to this page and download the library: Download bigbug-gg/zenlayer 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/ */
bigbug-gg / zenlayer example snippets
use BigbugGg\Zenlayer\Fetch;
class SimpleExample extends Fetch
{
/**
* @throws JsonException
*/
public function zenlayerCallName(): array
{
$dataArr = $this->fetch('ZenlayerCallName', [
// Parameters => Values
]);
// other logic codes
return $dataArr;
}
}