Download the PHP package amashukov/eth-rpc-client-php without Composer

On this page you can find all versions of the php package amashukov/eth-rpc-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eth-rpc-client-php

amashukov/eth-rpc-client-php

Ethereum / EVM JSON-RPC client in pure PHP — raw eth_* mirror plus an ethers.js v6-style typed provider over any PSR-18 client, with EIP-1559 fee data.

CI PHPStan L9 Latest Version Downloads PHP Stars

An Ethereum JSON-RPC client in pure PHP for any EVM chain, built on any PSR-18 HTTP client. Two layers: a raw eth_* mirror (EthRpcClient) for audit-grade hex parity with the wire, and an ethers.js v6-flavoured facade (JsonRpcProvider) returning typed Value Objects — EthereumTransaction, EthereumTxBundle, EthereumBlock, EthereumFeeData, EthereumFeeHistory, EthereumTransactionLog. Wei values that exceed PHP_INT_MAX stay safe as decimal strings via ext-gmp, never lossy floats. EIP-1559 fee composition follows ethers.js (maxFeePerGas = 2 × baseFee + tip), and the provider gracefully handles real-world node quirks like Erigon's bare 0x returns and missing baseFeePerGas.

Features

Why amashukov/eth-rpc-client-php

web3p/web3.php is effectively abandoned and predates EIP-1559 — no typed fee data, no London-fork fee composition. This package targets modern PHP 8.3, ships EIP-1559 fee math out of the box, returns typed Value Objects with bigint-safe decimal strings, keeps PHPStan level 9 across the surface, and stays transport-agnostic so retries and API keys live in your PSR-18 pipeline.

Installation

Usage

Wire a retry / API-key pipeline by composing amashukov/http-client-php middlewares around the CurlClient and passing the resulting PSR-18 Pipeline into EthRpcClient.

Two layers

Layer Use it for
EthRpcClient (eth_*) Audit-grade paths that need hex parity with the wire format.
JsonRpcProvider New code — typed VOs, decimal-string balances, ethers.js naming.

Signing

This package broadcasts already-signed raw transactions via sendTransaction(). Offline EIP-1559 / EIP-155 signing lives in the companion amashukov/eip1559-tx-signer-php.

Requirements

Related packages

Package Role
amashukov/abi-encoder-php Solidity ABI encode / decode (dependency)
amashukov/eip1559-tx-signer-php Offline EIP-1559 / EIP-155 transaction signing
amashukov/http-client-php PSR-18 cURL client + retry / header-injection middleware
amashukov/keccak-php Keccak-256 hashing
amashukov/eth-php Ethereum meta-package
amashukov/blockchain-context-bundle Symfony bundle wiring the whole family

Quality

License

MIT — see LICENSE.


All versions of eth-rpc-client-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-bcmath Version *
ext-gmp Version *
amashukov/abi-encoder-php Version ^0.1.0
psr/clock Version ^1.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amashukov/eth-rpc-client-php contains the following files

Loading the files please wait ...