Registry / crypto / iexbase-web3-php

iexbase-web3-php

JSON →
library2.0.1phppackagistunverified

Ethereum web3 interface.

composer require iexbase/web3.php
INSTALL
IMPORT
SIG · IEXBASE-WEB3-PHP
I
iexbase-web3-php
cryptophpv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Web3
use Web3\Web3;

Connect to an Ethereum node and fetch the latest block number.

use Web3\Web3; $web3 = new Web3('http://localhost:8545'); $web3->eth->blockNumber(function ($err, $data) { echo $data; });
Debug
Known issues
breakingRequires PHP 7.2+ and the GMP extension for cryptographic operations.
fix
Install PHP GMP extension (e.g., apt-get install php-gmp).
affects: >=2.0.0
Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
iexbase-web3-php — pip install iexbase-web3-php · libregistry