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)1509MITPHPPHP ^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 2w ago

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

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

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

1365d 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

[n1ebieski/ksef-php-client

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

9082.3k](/packages/n1ebieski-ksef-php-client)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M672](/packages/shopware-core)[soneso/stellar-php-sdk

Stellar PHP SDK for the Stellar Network

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

Yoti SDK for quickly integrating your PHP backend with Yoti

28594.7k1](/packages/yoti-yoti-php-sdk)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

33182.7k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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