Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Blockchain Tools Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature scoping for read-only on-chain functionality. This package addresses two narrow but real problems: safely handling numbers larger than PHP's 64-bit integers (Ethereum 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.
  • Build vs. buy on the crypto plumbing layer. Hex arithmetic and ABI decoding are commodity problems in the PHP ecosystem (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.
  • Roadmap sequencing for wallet / payments / NFT work. If the roadmap contains crypto checkout, NFT-gated access, or treasury reconciliation, this package is a legitimate day-one accelerant for the read path (parse an ERC-20 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.
  • Use cases worth prototyping against: decoding transaction input data for support tickets ("what did this user actually send?"), reconciling on-chain transfers against internal ledger rows, displaying token amounts without floating-point rounding errors, and validating that a contract call our backend constructed is shaped correctly before broadcast.
  • Risk posture decision. Adoption of a low-signal dependency is a decision in itself. The right call is usually "adopt behind our own interface": define a 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.

When to Consider This Package

Consider it when:

  • We are already consuming the Enjin Platform or its PHP SDK, in which case this is likely an internal dependency we inherit anyway and consistency argues for using it directly.
  • The requirement is strictly decoding and formatting — hex ↔ decimal, uint256-safe math, ABI-encoded payload parsing — with no node RPC, no signing, no key material.
  • We want a pure-PHP, no-extension dependency with a small surface area, and we are comfortable pinning an exact version and writing our own conformance tests against known-good vectors (real mainnet transaction payloads).
  • We need something working this sprint and the alternative is a two-week spike on ABI type coverage we do not actually need.

Look elsewhere when:

  • We need JSON-RPC calls, event indexing, transaction signing, key management, or nonce handling — that is web3p/web3.php, simplito/elliptic-php, or a managed provider (Alchemy, Infura, Moralis), not this.
  • We need broad ABI type coverage (tuples, nested arrays, dynamic types) or human-readable ABI support — web3p/ethereum-abi is the more complete decode path.
  • We are handling funds. Zero community scrutiny means no external eyes on edge cases; anything touching value transfer should route through audited or widely-deployed libraries.
  • Maintenance guarantees matter — the repository shows no adoption signal, so assume bus factor of one and no security response process. If we cannot tolerate that, do not take the dependency.
  • We want Laravel-native ergonomics (facades, config, service provider, queued job helpers). This is a low-level toolkit; the Laravel glue is ours to write either way.

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.

How to Pitch It (Stakeholders)

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."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core