PHPackages                             adamyu1024/filecoin-tx - 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. adamyu1024/filecoin-tx

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

adamyu1024/filecoin-tx
======================

Filecoin transaction library in PHP

v1.1.1(4y ago)42132[1 issues](https://github.com/yuminuo/filecoin-tx/issues)MITPHPPHP ^7.4

Since Aug 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yuminuo/filecoin-tx)[ Packagist](https://packagist.org/packages/adamyu1024/filecoin-tx)[ RSS](/packages/adamyu1024-filecoin-tx/feed)WikiDiscussions master Synced today

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

filecoin-tx
===========

[](#filecoin-tx)

Filecoin transaction library in PHP(Only for secp256k1).

Install
=======

[](#install)

```
composer require adamyu1024/filecoin-tx

```

Usage
=====

[](#usage)

#### sign

[](#sign)

Returns signed of transaction data.

`sign(array $message, string $privateKey)`

###### Example

[](#example)

- Sign the transaction data.

```
use adamyu1024\FilecoinTx\Sign;

        $message = [
            'version' => 0,
            'from' => "t1hb4737umuzzbcfd3xxk3bdtwezgistj7dycypvi",
            'to' => "t1dynqskhlixt5eswpff3a72ksprqmeompv3pbesy",
            'value' => "1000000000000000000", // 此参数必须是字符串 1 FIL
            'method' => 0, // 表示send
            'nonce' => 0, // 交易序号，用接口 MpoolGetNonce 获取
            'params' => "", // base64 编码数据
            'gasLimit' => 7948138, // 可用接口估算 GasEstimateGasLimit
            'gasPremium' => "2347948138", // 此参数必须是字符串，可用接口估算 GasEstimateGasPremium
            'gasFeeCap' => "2347948138" // 此参数必须是字符串，可用接口估算 GasEstimateFeeCap
        ];

        $sign = new Sign();
        $signData = $sign->sign($message,"ee2868ca9485673b36c38ba4f18551be25d08dd9be9bd24c44cd626b37cadae4");
        //获取messageID
        $message['cid'] = ['/' => $sign->getMessageId()];
        //获取离线计算发送返回CID
        $sign->getCid();
        $signMessageData = [
            'message'=>$message,
            'signature'=>[
                'data'=>$signData,
                'type'=>1 //SECP256K1=1
            ]
        ];
```

License
=======

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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 ~3 days

Total

3

Last Release

1721d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6346603?v=4)[adamyu](/maintainers/adamyu)[@AdamYU](https://github.com/AdamYU)

---

Top Contributors

[![DevMinions](https://avatars.githubusercontent.com/u/14174210?v=4)](https://github.com/DevMinions "DevMinions (6 commits)")

### Embed Badge

![Health badge](/badges/adamyu1024-filecoin-tx/health.svg)

```
[![Health](https://phpackages.com/badges/adamyu1024-filecoin-tx/health.svg)](https://phpackages.com/packages/adamyu1024-filecoin-tx)
```

###  Alternatives

[web3p/ethereum-util

A collection of utility functions for Ethereum written in PHP.

30420.2k26](/packages/web3p-ethereum-util)[swentel/nostr-php

Nostr helper library for PHP

6725.9k3](/packages/swentel-nostr-php)[digitaldonkey/ecverify

A library integrating Ethereum with typed PHP.

14109.2k2](/packages/digitaldonkey-ecverify)[deemru/waveskit

Waves Platform Development Kit

243.7k5](/packages/deemru-waveskit)

PHPackages © 2026

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