I am trying to use this (https://github.com/Achse/geth-jsonrpc-php-client) library using composer and codeigniter. But I am getting below error:
Type: Error
Message: Class 'GuzzleClient' not found
Filename: /var/www/html/test/application/libraries/Ethereum.php
Line Number: 7
And below is my library code:
<?php
class Ethereum
{
public function __construct()
{
$httpClient = new GuzzleClient(new GuzzleClientFactory(), 'localhost', 8545);
$client = new Client($httpClient);
return $client;
}
}
Composer is wel loaded as other dependancies are working fine. Not able to find out the issue. plz help