PHP code example of czpechy / claymore-api
1. Go to this page and download the library: Download czpechy/claymore-api 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/ */
czpechy / claymore-api example snippets
$host = '192.168.1.1:3333'; // IP address & port for your miner (black console claymore response)
$client = new \czPechy\Claymore\Client($host);
echo $client->getJson(); // or $client->getData() for object