PHPackages                             pingleware/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pingleware/web3

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pingleware/web3
===============

PHP library for Web3

1.0.0.1(2y ago)04CC-BY-4.0PHP

Since Sep 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pingleware/pingleware-web3)[ Packagist](https://packagist.org/packages/pingleware/web3)[ RSS](/packages/pingleware-web3/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

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

[](#php-library-for-web3)

A minimal Web3 composer library for interacting with a blockchain including GANACHE.

Prerequisites
-------------

[](#prerequisites)

The following packages must be installed prior to use,

PHP 7.8,

```
sudo apt install php

```

CURL,

```
sudo app install curl

```

pingleware-deploy-cli

```
sudo snapcraft install pingleware-deploy-cli

```

if using the executables in the bin path, ensure the permissions are set properly,

```
sudo chmod +x vendor/pingleware/web3/bin/pingleware-deploy-cli*

```

Sample code
-----------

[](#sample-code)

```
    require "vendor/autoload.php";

    use PINGLEWARE\Web3\Web3;

    $web3 = null;
    $arch = Web3::detectArchitecture();
    $os = strtolower(PHP_OS);
    if ($arch == "ARM") {
        $web3 = new Web3("http://192.168.0.103:8545",dirname(__FILE__)."/pingleware-deploy-cli_$os-arm64");
    } else if ($arch == "x64") {
        $web3 = new Web3("http://192.168.0.103:8545",dirname(__FILE__)."/pingleware-deploy-cli_$os-x64");
    } else {
        echo "architecture is UNKNOWN?\n";
        exit;
    }

    echo 'Balance: '.$web3->eth_getBalance("0x5EaF72deD2e4E255C228f9070501974D3572c5d4")." ETH\n";

```

command to execute,

```
php -f index.php

```

results,

```
Balance: 997.34654526537 ETH
Contract Address: 0x4106fC344F17e207bAf7aF3B8CDB6325724F6fb8

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a34e6aa5ed85e0de8eeb895b5a2b9862ed6f5b3c8d5c6f15a08e1704a290c04f?d=identicon)[presspage2018](/maintainers/presspage2018)

---

Top Contributors

[![pingleware](https://avatars.githubusercontent.com/u/37370327?v=4)](https://github.com/pingleware "pingleware (1 commits)")

### Embed Badge

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

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

###  Alternatives

[hanson/rainbow

4710.4k](/packages/hanson-rainbow)

PHPackages © 2026

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