How to connect to Ethereum Blockchain in PHP using the Web3.js PHP library June 1, 2023 1 Min Read 0 245 require(‘../vendor/autoload.php’); use Web3\Web3; $web3 = new Web3(‘BLOCKCHAIN_URL:PORT’); $etherium = $web3->eth; $accounts = $web3->eth()->accounts(); source: MIT Licence PHP Chief Dev