use Drand\Client\Http\DrandHttpClient;
$drand = new DrandHttpClient(
'https://api.drand.sh',
// League-of-Entropy default chain hash
'8990e7a9aaed2ffed73dbd7092123d6f289930540d7651336225dc172e51b2ce'
);
$latest = $drand->latest();
printf("Round %d – %s\n", $latest->round, $latest->randomness);
We’d love to have this library listed under Developer → Client Libraries on docs.drand.love.
Happy to open a follow-up PR adding a row to developer/clients.md once approved.
New client library: drand-client-php
dev404ai/drand-client-php(Composer)Key features
We’d love to have this library listed under Developer → Client Libraries on docs.drand.love.
Happy to open a follow-up PR adding a row to developer/clients.md once approved.
Thanks for your time!
/cc @nikkolasg @alanshaw @anorth