Registry / crypto / web3p-web3-php

web3p-web3-php

JSON →
library0.3.2phppackagistunverified

Ethereum web3 interface for PHP, allowing interaction with Ethereum blockchain.

composer require web3p/web3.php
INSTALL
IMPORT
SIG · WEB3P-WEB3-PHP
W
web3p-web3-php
cryptophpv0.3.2
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 Web3p\Web3\Web3;

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

use Web3p\Web3\Web3; $web3 = new Web3('http://localhost:8545'); $web3->eth->blockNumber(function ($err, $data) { echo $data; });
Debug
Known issues
breakingRequires PHP 7.1+ and the GMP extension for cryptographic operations.
fix
Install php-gmp and ensure PHP version compatibility.
affects: <0.3.0
Upgrade
Version history
0.3.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
38
Resources
web3p-web3-php — pip install web3p-web3-php · libregistry