我是PHP新手,我试图在mac上运行web3.php上的$exampleBase.php
但它不断地显示出错误:
PHP致命错误:未捕获错误:在/Users/hsnl/Desktop/code/back-end-php/web3.php/examples/exampleBase.php:7堆栈跟踪中找不到类‘Web3 3\Web3 3’:#0 {main}抛出在第4行的/Users/hsnl/Desktop/code/back-end-php/web3.php/examples/exampleBase.php中
$exampleBase.php文件如下所示
<?php
require('vendor/autoload.php');
use Web3\Web3;
$web3 = new Web3('http://localhost:8545/');知道我为什么或者怎么解决这个问题吗?
发布于 2018-09-12 18:19:02
如果您正在尝试运行sc0Vu,请尝试遵循以下步骤:https://github.com/sc0Vu/web3.php#local-php-cli-installed
克隆回购程序并安装软件包。
git clone https://github.com/sc0Vu/web3.php.git && cd web3.php && composer install这意味着:
运行测试脚本。
vendor/bin/phpunit
https://stackoverflow.com/questions/52301045
复制相似问题