Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 506 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 506 Bytes

ethOS Client for PHP

This client makes it easy to connect to the panel of your ethOS cryptocurrency miners.

Initiate the client:

$client = new \RutgerKirkels\Ethos_Api_Client\Client(<id_of_your_ethos_panel>);

Get all miners the current hashrate for all miners:

$miners = $client->getAllMiners();

foreach ($miners as $miner) {
    echo 'Hashrate for miner ' . $miner->getId() . ': ' . $miner->getHashrate() . ' MH/s<br/>';
}