PHP code example of bcphp / ethereum
1. Go to this page and download the library: Download bcphp/ethereum library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bcphp / ethereum example snippets
Shell
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
Shell
cd secp256k1-php-0.1.2/secp256k1/.libs/
mv /secp256k1.so <EXTENSION_DIRECTORY_LOCATION>
Shell
php --ini