m8b/ether-binder
Composer 安装命令:
composer require m8b/ether-binder
包简介
Set of utilities for interacting with Ethereum and it's smart contracts with PHP, with generating ABI bindings and Ethereum-related types
README 文档
README
Unchain the full potential of Ethereum in PHP. Send transactions, tap into RPCs, and even generate ABI bindings just like you would with geth's abigen. Built for modern PHP 8.2!
🚀 Features
- Modern PHP: Utilizes PHP 8.2 features for cleaner, more robust code.
- ABIGen: A PHP counterpart to geth's ABIGen for contract bindings.
- Ethereum Types: Custom objects like
Hash,Address, and more. - RPC Support: Range of RPC methods to talk to Ethereum nodes.
- Strongly Typed: No more guessing games. Type hinting all the way.
🔧 Requirements
- PHP 8.2+
- Composer 2.2+
💾 Installation
Just use Composer. Install the beta version for now.
composer require m8b/ether-binder:v0.2.0-rc
📖 Documentation
- Quick Start: Grab code snippets from examples.
- Read About Components: Check out the docs for the full docs.
🚧 Status
Caution: The library is still in its pre-release stage. Perfect for tinkering but not ready for prime time.
Feature Board
| feature | status |
|---|---|
| RPC HTTP | ✅ Done |
| Transactions, serializing / deserializing | ✅ Done |
| RLP encoder / decoder | ✅ Done |
| RPC Eth_ | ✅ Done |
| Signing txn | ✅ Done |
| RPC Net_ | ✅ Done |
| RPC Web3_ | ✅ Done |
| Wallet (pk raw) | ✅ Done |
| Wallet (pk mnemonic) | ✅ Done |
| Signing msg | ✅ Done |
| Contract bindings (akin to abigen) | ✅ Done |
| Documentation (in-code) | ✅ Done |
| Documentation (generated from in-code) | ✅ Done |
| Documentation (standalone) | ✅ Done |
| RPC Net_ filters | ✅ Done |
| Wallet (pk .json) | ⚠️ Separate lib |
A Note on JSON Keystore
Due to performance constraints with scrypt in PHP, JSON keystore support is a library, which requires scrypt pecl extension.
📜 License
Mozilla Public License 2.0
Missing something? Post an issue.
m8b/ether-binder 适用场景与选型建议
m8b/ether-binder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 52 次下载、GitHub Stars 达 8, 最近一次更新时间为 2023 年 09 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 m8b/ether-binder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 m8b/ether-binder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 18
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2023-09-14