PHPackages                             fengxin2017/eth - 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. fengxin2017/eth

ActiveLibrary

fengxin2017/eth
===============

eth

0.1.0(5y ago)27MITPHP

Since Oct 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fengxin2017/eth)[ Packagist](https://packagist.org/packages/fengxin2017/eth)[ RSS](/packages/fengxin2017-eth/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

### Description

[](#description)

Ethereum API For Laravel

### Prerequisites

[](#prerequisites)

- **PHP** &gt;= 7.4+

### Installation

[](#installation)

`composer require fengxin2017/eth`

`$ php artisan vendor:publish -provider="Fengxin2017\ETH\EthServiceProvider"`

### Demo

[](#demo)

```
// transfer ETH only support geth rpcclient.

use FurqanSiddiqui\Ethereum\Accounts\Account;
use Fengxin2017\ETH\Coin\ETH;

ETH::getInstance()->from(Account|ETHADDRESS)
        ->to(Account|ETHADDRESS)
        ->amount('0x9184e72a') // hex
        ->password('xxxx')
        ->send();

ETH::getInstance()->from(Account|ETHADDRESS)
        ->to(Account|ETHADDRESS)
        ->amount('100000000000') // wei
        ->password('xxxx')
        ->send();

ETH::from(Account|ETHADDRESS)
        ->to(Account|ETHADDRESS)
        ->amountForHumans(1)
        ->password('xxxx')
        ->send();
```

```
use Fengxin2017\ETH\Facades\Geth;
use Fengxin2017\ETH\Facades\Infura;

Geth::eth_getBalance(ETHADDRESS);
Geth::eth_blockNumber();

Infura::eth_getBalance(ETHADDRESS);
Infura::eth_blockNumber();

// http://cw.hubwiz.com/card/c/ethereum-json-rpc-api/1/3/17/
// http://cw.hubwiz.com/card/c/geth-rpc-api/1/4/6/
Geth::call(METHOD_NAME,ARRAYPARAMS)

//https://infura.io/docs/ethereum/json-rpc
Infura::call(METHOD_NAME,ARRAYPARAMS)
```

```
// transfer erc20token only support geth rpcclient

use FurqanSiddiqui\Ethereum\Accounts\Account;
use Fengxin2017\ETH\Facades\Erc20;
use Fengxin2017\ETH\Facades\Geth;

Usdt::name();
Usdt::totalSupply();
Usdt::balanceOf(Account|ETHADDRESS);

YFI::name();
YFI::totalSupply();

YFII::balanceOf(Account|ETHADDRESS);

$recipt = YFII::from(Account|ETHADDRESS)
    ->to(Account|ETHADDRESS)
    ->amount(amount)
    ->password(password)
    ->send();

// Pending will return null
$transactionInfo = Geth::call('eth_getTransactionReceipt',[$recipt]);

.....

# OR

$usdt = Erc20::token(UsdtContractAddress);
$data = $usdt->encodedTransferData($to, $amount);
$params = [
    'from' => FROMADDRESS,
    'to' => USDTCONTRACTADDRESS,
    'value' => '0x0',
    'data' => $data
];
Geth::call('personal_sendTransaction', [
     $params, PASSWORD
]);
```

### More

[](#more)

[erc20-php](https://github.com/furqansiddiqui/erc20-php)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Unknown

Total

1

Last Release

2053d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34121698?v=4)[foxriver1314](/maintainers/fengxin2017)[@fengxin2017](https://github.com/fengxin2017)

---

Top Contributors

[![fengxin2017](https://avatars.githubusercontent.com/u/34121698?v=4)](https://github.com/fengxin2017 "fengxin2017 (12 commits)")

### Embed Badge

![Health badge](/badges/fengxin2017-eth/health.svg)

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

PHPackages © 2026

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