PHPackages                             bcphp/ethereum - 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. bcphp/ethereum

ActiveLibrary

bcphp/ethereum
==============

Ethereum for PHP: Make JSON-RPC with nodes.

v0.2(7y ago)160MITPHPPHP ^7.0.0

Since May 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bcphp/ethereum)[ Packagist](https://packagist.org/packages/bcphp/ethereum)[ Docs](https://github.com/bcphp/ethereum)[ RSS](/packages/bcphp-ethereum/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

BC-PHP Ethereum
===============

[](#bc-php-ethereum)

This library provides useful functions to operate an ethereum node.

Requirements
------------

[](#requirements)

- PHP 7.0+
- gmp
- mbstring
- secp256k1-lastest
- secp256k1-php-0.1.2
- autoconf
- libtool
- phpize

Instalation
-----------

[](#instalation)

1. Install secp256k1-lastest:

```
curl -L0k https://github.com/bitcoin-core/secp256k1/archive/master.zip > secp256k1-latest.zip
unzip secp256k1-latest.zip
cd secp256k1-master
./autogen.sh
./configure --enable-experimental --enable-module-{ecdh,recovery}
make
sudo make install
cd .. # go out
```

2. Install secp256k1-php-0.1.2:

```
curl -L0k https://github.com/Bit-Wasp/secp256k1-php/archive/v0.1.2.zip > secp256k1-php-0.1.2.zip
unzip secp256k1-php-0.1.2.zip
cd secp256k1-php-0.1.2/secp256k1
phpize
./configure --with-secp256k1
make
sudo make install
cd .. # go out
```

3. Modify php.ini

Find your extension directory location:

```
php -i | grep extension_dir
```

If secp256k1.so dosen't exists, move secp256k1.so to the extension directory location:

```
cd secp256k1-php-0.1.2/secp256k1/.libs/
mv /secp256k1.so
```

Find your php.ini:

```
php --ini
```

Add this line for enable secp256k1 lib:

```
extension=secp256k1.so

```

4. Install via composer

Add to composer:

```
"require-dev": {
	"bcphp/ethereum": "*",
},
```

or

```
composer require bcphp/ethereum
```

JSON-RCP
--------

[](#json-rcp)

Connect to an ethereum node through json rpc.

SEND RAW TRANSACTIONS
---------------------

[](#send-raw-transactions)

Make raw signed transactions.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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

4

Last Release

2915d ago

PHP version history (2 changes)v0.1PHP &gt;=7.0.0

v0.1.1PHP ^7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/415cbcd62b983af8d9ff84540ec39da5d8ffea6575b19ff9d789b56e345f5ba5?d=identicon)[JettTeixeira](/maintainers/JettTeixeira)

---

Top Contributors

[![JettTeixeira](https://avatars.githubusercontent.com/u/6015939?v=4)](https://github.com/JettTeixeira "JettTeixeira (14 commits)")[![bogos](https://avatars.githubusercontent.com/u/2405388?v=4)](https://github.com/bogos "bogos (1 commits)")

---

Tags

json-rpcnodeethereumrawTx

### Embed Badge

![Health badge](/badges/bcphp-ethereum/health.svg)

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

###  Alternatives

[kornrunner/ethereum-offline-raw-tx

Pure PHP Ethereum Offline Raw Transaction Signer

63192.1k22](/packages/kornrunner-ethereum-offline-raw-tx)[drlecks/simple-web3-php

Web3 library in PHP

7641.6k2](/packages/drlecks-simple-web3-php)[kornrunner/solidity

Pure PHP implementation of Solidity

1940.5k11](/packages/kornrunner-solidity)

PHPackages © 2026

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