enjin/php-blockchain-tools
A PHP library of blockchain utility tools from Enjin, providing helper classes for common operations like encoding, hashing, and data handling. Designed to simplify integration with Enjin and EVM-based chains in PHP and Laravel applications.
uint256 values, wei amounts, token supplies) and decoding raw contract call/return data into typed values. That is enough to ship a "show me what this transaction actually did" surface — an admin panel column, an audit log enrichment, a customer-facing deposit history — without standing up a full RPC client.brick/math, phpseclib, web3p/ethereum-abi, kornrunner/keccak). The buy decision here is not "is this hard?" but "is this package's specific API worth a dependency?" Given zero stars and zero dependents, treat it as vendor-supplied code rather than a community-vetted library. It wins on size and focus; it loses on validation. If we are not already inside Enjin's stack, the honest default is to build the ~200 lines we need on brick/math and keep our dependency graph ours.transfer input, convert wei to a decimal display value, decode a balanceOf response). It is explicitly not on the write path — no signing, no key handling, no transaction submission. Keep it out of the trust boundary.ContractDataDecoder contract in our domain, implement it with this package, keep a second implementation on web3p behind a feature flag. That converts a supply-chain risk into a swap cost.Consider it when:
uint256-safe math, ABI-encoded payload parsing — with no node RPC, no signing, no key material.Look elsewhere when:
web3p/web3.php, simplito/elliptic-php, or a managed provider (Alchemy, Infura, Moralis), not this.web3p/ethereum-abi is the more complete decode path.If adopted: pin the version, wrap it in a domain interface, add property-based tests for overflow boundaries and malformed hex input, and document the exit path before the first PR merges.
For executives: This is a small, focused utility that lets us display and verify on-chain data — token amounts, transaction contents — inside our existing Laravel application, without buying a blockchain infrastructure vendor or building an integration from scratch. It shortens time-to-market on read-only crypto features by an estimated one to two sprint-weeks. The caveat is maturity: it has no meaningful external adoption, so we will isolate it behind our own interface so it can be replaced without rework. Cost of adoption is low; cost of lock-in is low because we isolate it.
For engineering: Pure PHP, no extensions, narrow scope — big-integer-safe hex conversion and contract data decoding. It does not touch signing, keys, or RPC; do not let it drift into those responsibilities. Expected integration is a thin service class plus a value object for decoded payloads. We will pin the version, add known-good test vectors from real transactions, and keep a web3p-based alternative behind the same interface so the swap is a one-file change. If we are already on the Enjin SDK, this is likely already in the tree and the calculus is "use it consistently" rather than "add it."
How can I help you explore Laravel packages today?