rutgerkirkels/ethos-api-client

A PHP client to connect to your ethOS mining rig through the Ethos Panel API

1.0.1 2018-03-04 07:12 UTC

This package is auto-updated.

Last update: 2024-03-28 06:52:41 UTC


README

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/>';
}