kornrunner/solidity
PHP library for working with Solidity smart contracts, including ABI encoding/decoding and utilities for Ethereum contract interaction. Encode calls, decode results and events, and handle contract data in PHP applications. Lightweight and suitable for transaction building and event parsing.
Consider it when:
Look elsewhere when:
Executive summary. This is a small, MIT-licensed PHP helper for Solidity ABI work — computing function selectors, encoding/decoding parameters, and handling event topics. It lets a PHP backend talk to smart contracts directly, avoiding a separate Node service for narrow, read-mostly use cases. Integration is roughly a day to a few days including tests and an abstraction layer, versus one to two sprints for a dedicated sidecar. The trade-off is ownership risk: low adoption, no dependents, and no release since December 2020 mean we should treat it as glue we may need to fork — not as a foundation. Recommended posture: approve for internal tooling, read paths, and prototypes behind an internal interface; exclude from signing and money-moving flows unless security review and a maintained fork are funded.
For engineering. Pure PHP, MIT, no runtime services. Wrap it in our own ContractCodec interface so it is swappable; vendor the source, pin the version, and add golden-vector tests against known ABI encodings. Budget a short spike to confirm PHP version compatibility and edge-case coverage (dynamic types, tuples, arrays). The cost is small; the discipline is what protects us.
How can I help you explore Laravel packages today?