Practical overview
When it fits
Use it when a PHP backend needs a code-level interface to an Ethereum RPC endpoint or ABI-based contract interactions.
Who it is for
- PHP backend developers building Ethereum-connected services.
- Developers integrating smart-contract calls or Ethereum data access into PHP applications.
Documented uses
- Connect a PHP application to an Ethereum node using HTTP, asynchronous HTTP or WebSocket providers.
- Make callback-based or batched RPC calls and handle their results or errors.
- Use an ABI to call a contract function, send a state-changing transaction, estimate gas, or prepare function and constructor data.
Requirements & limits
The repository identifies the library as MIT-licensed and documents Composer installation using the dev-master version.
- It is a library for application developers; it does not provide the Ethereum node endpoint.
- The documented Composer installation uses a development version and requires minimum stability set to dev.
- Contract interactions require application-provided ABI and contract details.
- The README demonstrates HTTP, asynchronous HTTP and WebSocket provider options, along with callback and batching patterns.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install Web3.Php with Composer
Add the documented Web3.Php package to a PHP project.
Before you start
- A PHP project using Composer.
Steps
Set Composer's minimum stability to dev.
Run
composer require web3p/web3.php dev-master, or addweb3p/web3.phpwith versiondev-masterto composer.json.
Expected outcome
The package is specified as a dependency for the PHP project.
Guide limitations
- The README specifies the development branch rather than a stable release version.
- This setup guide does not configure an Ethereum endpoint or demonstrate a completed contract interaction.
Configure a provider and call a contract function
Set up the documented PHP objects for an ABI-based contract call.
Before you start
- Web3.Php installed in a PHP project.
- An Ethereum RPC endpoint.
- The contract ABI, contract address, function name and required parameters.
Steps
Create a
Web3instance with an HTTP endpoint, or construct it with anHttpProvider.Create a
Contractusing the endpoint and ABI.Use
at($contractAddress)->call($functionName, $params, $callback)to invoke the documented contract-call interface.
Expected outcome
The code is structured to issue a contract function call through the configured provider and handle its result in a callback.
Guide limitations
- The README documents the interface but does not provide a complete ABI, live endpoint or returned call result.
- The endpoint and contract-specific values must be supplied by the application developer.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- web3p/web3.php · Official homepage title · retained in its source language

