Download the PHP package kakuilan/ethereum-php without Composer
On this page you can find all versions of the php package kakuilan/ethereum-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kakuilan/ethereum-php
More information about kakuilan/ethereum-php
Files in kakuilan/ethereum-php
Package ethereum-php
Short Description A library integrating Ethereum with typed PHP.forked from digitaldonkey/ethereum-php
License MIT
Informations about the package ethereum-php
Ethereum-PHP
is a typed PHP-7.1+ interface to Ethereum JSON-RPC API.
Check out the latest API documentation.
ethereum execution-apis.
Add library in a composer.json file
Usage
This is the important part of composer.json in Drupal Ethereum Module.
Calling Contracts
You can call (unpayed) functions in smart contracts easily.
The json file "$fileName" used is what you get when you compile a contract with Truffle.
You can also run tests at smart contracts, check out EthTestClient.
Event listening and handling
You can use Ethereum-PHP to watch changed on your smart contracts or index a Blockchain block by block. gs
See UsingFilters and ethereum-php-eventlistener.
Limitations
Currently not all datatypes are supported.
This library is read-only for now. This means you can retrieve information stored in Ethereum Blockchain.
To write to the blockchain you need a to sign transactions with a private key which is not supported yet.
Documentation
The API documentation is available at ethereum-php.org.
For reference see the Ethereum RPC documentation and for data encoding RLP dcumentation in Ethereum Wiki.
There is also a more readable Ethereum Frontier Guide version.
All versions of ethereum-php with dependencies
ext-json Version *
kakuilan/guzzle-jsonrpc Version ~3.0
pear/math_biginteger Version ^1.0
kornrunner/keccak Version ^1.0
digitaldonkey/ecverify Version 1.0