furqansiddiqui / erc20-php

Interact with Ethereum ERC20 Tokens
MIT License
163 stars 96 forks source link

EthereumRPC not found #4

Closed johnwmg closed 6 years ago

johnwmg commented 6 years ago

Installed erc20-php with composer using: composer require furqansiddiqui/erc20-php

It went smoothly and automatically included ethereum-rpc and http-client.

Tried first example from erc20-php .md and fails "Class 'EthereumRPC' not found .... "

First part of my index.php is: require DIR . '/vendor/autoload.php'; $geth = new EthereumRPC('127.0.0.1', 8545);

The /vendor/ directory and subdirectories only contain what was created by composer.

Any suggestions ?

Regards, John Wm

johnwmg commented 6 years ago

resolved by including USE statements .