php-graphene-node-client
It is PHP API client for Steem/GOLOS blockchain
Github or packagist with MIT license. Author @t3ran13 and active helper @semaspring
secp256k1-php
are used for signing transaction with canonical sign
Setup
You have to install secp256k1-php for using broadcast (sending transactions to blockchain).
install components
sudo apt-get install automake
sudo apt-get install libtool
only after this install secp256k1-php as discribed in 'To Install' section
Dockerfile is setted up for broadcast for all components are used in php-graphene-node-client
# our base image
FROM php:7.1-fpm
#install zip extension for composer
RUN apt-get update && apt-get install -y \
zip \
automake \
libtool \
libgmp-dev \
&& docker-php-ext-install gmp
#install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
#install secp256k1-php
RUN cd ~ && \
curl -#L https://github.com/bitcoin-core/secp256k1/archive/master.zip > file.zip && \
unzip file.zip && \
rm file.zip && \
cd secp256k1-master && \
./autogen.sh && \
./configure --enable-experimental --enable-module-ecdh --enable-module-recovery && \
make && \
make install
RUN cd ~ && \
curl -#L https://github.com/Bit-Wasp/secp256k1-php/archive/v0.1.2.zip > file.zip && \
unzip file.zip && \
rm file.zip && \
cd secp256k1-php-0.1.2/secp256k1 && \
phpize && \
./configure --with-secp256k1 && \
make && \
make install
RUN echo "extension=secp256k1.so" > /usr/local/etc/php/conf.d/secp256k1.ini
RUN chown -R www-data:www-data /var/www
WORKDIR /var/www/php-node-client
Posted on Utopian.io - Rewarding Open Source Contributors