OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Web3.Php

Web3.Php is a PHP library for connecting applications to Ethereum through RPC providers, parsing contract ABIs and interacting with smart contracts. Its documented interfaces include HTTP, asynchronous HTTP and WebSocket providers, callbacks, batched calls, contract function calls and sends, gas estimation, and contract data preparation.

Independent OpenViST project profile, based on linked sources.

Web3.Php — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

Install Web3.Php with Composer

Add the documented Web3.Php package to a PHP project.

Before you start

  • A PHP project using Composer.

Steps

  1. Set Composer's minimum stability to dev.

  2. Run composer require web3p/web3.php dev-master, or add web3p/web3.php with version dev-master to 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.
Source-based practical guide

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

  1. Create a Web3 instance with an HTTP endpoint, or construct it with an HttpProvider.

  2. Create a Contract using the endpoint and ABI.

  3. 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.
Evidence and transparency

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