2017 © Pedro Peláez
 

library ethereum

Ethereum for PHP: Make JSON-RPC with nodes.

image

bcphp/ethereum

Ethereum for PHP: Make JSON-RPC with nodes.

  • Tuesday, May 22, 2018
  • by JettTeixeira
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 73 % Grown

The README.md

BC-PHP Ethereum

This library provides useful functions to operate an ethereum node., (*1)

Requirements

  • PHP 7.0+
  • gmp
  • mbstring
  • secp256k1-lastest
  • secp256k1-php-0.1.2
  • autoconf
  • libtool
  • phpize

Instalation

  1. Install secp256k1-lastest:
curl -L0k https://github.com/bitcoin-core/secp256k1/archive/master.zip > secp256k1-latest.zip
unzip secp256k1-latest.zip
cd secp256k1-master
./autogen.sh
./configure --enable-experimental --enable-module-{ecdh,recovery}
make
sudo make install
cd .. # go out
  1. Install secp256k1-php-0.1.2:
curl -L0k https://github.com/Bit-Wasp/secp256k1-php/archive/v0.1.2.zip > secp256k1-php-0.1.2.zip
unzip secp256k1-php-0.1.2.zip
cd secp256k1-php-0.1.2/secp256k1
phpize
./configure --with-secp256k1
make
sudo make install
cd .. # go out
  1. Modify php.ini

Find your extension directory location:, (*2)

php -i | grep extension_dir

If secp256k1.so dosen't exists, move secp256k1.so to the extension directory location:, (*3)

cd secp256k1-php-0.1.2/secp256k1/.libs/
mv /secp256k1.so <EXTENSION_DIRECTORY_LOCATION>

Find your php.ini:, (*4)

php --ini

Add this line for enable secp256k1 lib:, (*5)

extension=secp256k1.so
  1. Install via composer

Add to composer:, (*6)

"require-dev": {
    "bcphp/ethereum": "*",
},

or, (*7)

composer require bcphp/ethereum

JSON-RCP

Connect to an ethereum node through json rpc., (*8)

SEND RAW TRANSACTIONS

Make raw signed transactions., (*9)

The Versions

22/05 2018

dev-master

9999999-dev https://github.com/bcphp/ethereum

Ethereum for PHP: Make JSON-RPC with nodes.

  Sources   Download

MIT

The Requires

 

by Jett Teixeira

json-rpc ethereum node rawtx

22/05 2018

v0.2

0.2.0.0 https://github.com/bcphp/ethereum

Ethereum for PHP: Make JSON-RPC with nodes.

  Sources   Download

MIT

The Requires

 

by Jett Teixeira

json-rpc ethereum node rawtx

15/05 2018

v0.1.2

0.1.2.0 https://github.com/bcphp/ethereum

Ethereum for PHP: Make JSON-RPC with nodes.

  Sources   Download

MIT

The Requires

 

by Jett Teixeira

json-rpc ethereum node rawtx

15/05 2018

v0.1.1

0.1.1.0 https://github.com/bcphp/ethereum

Ethereum for PHP: Make JSON-RPC with nodes.

  Sources   Download

MIT

The Requires

 

by Jett Teixeira

json-rpc ethereum node rawtx

15/05 2018

v0.1

0.1.0.0 https://github.com/bcphp/ethereum

Ethereum for PHP: Make JSON-RPC with nodes.

  Sources   Download

MIT

The Requires

 

by Jett Teixeira