PHPackages                             forecho/web3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. forecho/web3

ActiveLibrary[API Development](/categories/api)

forecho/web3
============

A PHP library for interacting with Ethereum

v1.2.0(3y ago)1458MITPHPPHP ^7.1 || ^8.0

Since Nov 19Pushed 3y agoCompare

[ Source](https://github.com/forecho/php-web3)[ Packagist](https://packagist.org/packages/forecho/web3)[ RSS](/packages/forecho-web3/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Web3 for PHP
============

[](#web3-for-php)

PHP Ethereum ABI Encoder/Decoder

Install
=======

[](#install)

Then

```
composer require forecho/web3

```

Usage
=====

[](#usage)

Encode
------

[](#encode)

```
use Web3\Contracts\Ethabi;
use Web3\Contracts\Types\Address;
use Web3\Contracts\Types\Boolean;
use Web3\Contracts\Types\Bytes;
use Web3\Contracts\Types\DynamicBytes;
use Web3\Contracts\Types\Integer;
use Web3\Contracts\Types\Str;
use Web3\Contracts\Types\Uinteger;

$abi = new Ethabi([
    'address' => new Address(),
    'bool' => new Boolean(),
    'bytes' => new Bytes(),
    'dynamicBytes' => new DynamicBytes(),
    'int' => new Integer(),
    'string' => new Str(),
    'uint' => new Uinteger(),
]);

$abi->decodeParameter('uint', '0x0000000000000000000000000000000000000000000000000000000000000001');
// 1
$abi->decodeParameter('address', '0x0000000000000000000000000000000000000001');
// '0x0000000000000000000000000000000000000001'
```

License
=======

[](#license)

MIT

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

1320d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c0612f70d09feb06ab5d24a31e0cc551f1ee547b42308c695e34d76181f18cf?d=identicon)[forecho](/maintainers/forecho)

---

Top Contributors

[![forecho](https://avatars.githubusercontent.com/u/1725326?v=4)](https://github.com/forecho "forecho (7 commits)")[![lessmore92](https://avatars.githubusercontent.com/u/1258149?v=4)](https://github.com/lessmore92 "lessmore92 (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/forecho-web3/health.svg)

```
[![Health](https://phpackages.com/badges/forecho-web3/health.svg)](https://phpackages.com/packages/forecho-web3)
```

###  Alternatives

[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[web3p/web3.php

Ethereum web3 interface.

1.3k348.3k41](/packages/web3p-web3php)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9067.8k](/packages/n1ebieski-ksef-php-client)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[soneso/stellar-php-sdk

Stellar PHP SDK for the Stellar Network

4154.3k4](/packages/soneso-stellar-php-sdk)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

28578.9k1](/packages/yoti-yoti-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
