1. Go to this page and download the library: Download codegyan/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/ */
codegyan / client example snippets
use Codegyan\Client;
// Your API key and client ID
$apiKey = '';
$clientId = '';
// Create a Client instance
$client = new Client($apiKey, $clientId);
$domain = "codegyan.in"; // Domain Here
try {
$result = $client->toolsApiClient->domainAvailability($domain);
echo "$result\n";
} catch (Exception $e) {
echo "Error: " . $e->getMessage() . "\n";
}
use Codegyan\Client;
// Your API key and client ID
$apiKey = '';
$clientId = '';
// Create a Client instance
$client = new Client($apiKey, $clientId);
$lang = "python3";
$code = "print('Hello World')";
try {
$result = $client->compilerApiClient->compile($lang, $code);
echo "$result\n";
} catch (Exception $e) {
echo "Error: " . $e->getMessage() . "\n";
}
use Codegyan\Client;
// Your API key and client ID
$apiKey = '';
$clientId = '';
// Create a Client instance
$client = new Client($apiKey, $clientId);
$domain = "example.com";
try {
$result = $client->toolsApiClient->domainAvailability($domain);
echo "$result\n";
} catch (Exception $e) {
echo "Error: " . $e->getMessage() . "\n";
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.