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!
- 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.
- PHP 8.2+
- Composer 2.2+
Just use Composer. Install the beta version for now.
composer require m8b/ether-binder:v0.2.0-rc
- Quick Start: Grab code snippets from examples.
- Read About Components: Check out the docs for the full docs.
Caution: The library is still in its pre-release stage. Perfect for tinkering but not ready for prime time.
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) |
Due to performance constraints with scrypt in PHP, JSON keystore support is a library, which requires scrypt
pecl extension.
Mozilla Public License 2.0
Missing something? Post an issue.