open-platform / open-wallet-php
Open Platform Wallet PHP Library
dev-main
2022-08-06 04:42 UTC
This package is not auto-updated.
Last update: 2022-08-07 03:03:32 UTC
README
PHP 5.6.0 and later.
Dependencies
Install OPEN Trust Wallet Library
STEP 1 - Clone repository
git clone https://github.com/OpenFuturePlatform/wallet-core.git
STEP 2 - Build Open Library
cd wallet-core/open-platform/core-cpp cmake . -DWALLET_CORE=../../ make
STEP 3 - Copy Open Library
Copying shared library to "/usr/lib" allows use it from everywhere
sudo cp libOpenWallet.so /usr/lib sudo chmod 0755 /usr/lib/libOpenWallet.so
STEP 4 - Install PHP-CPP Library
The PHP-CPP library is a C++ library for developing PHP extensions. https://github.com/CopernicaMarketingSoftware/PHP-CPP
cd wallet-core/open-platform/php/php-cpp
make
sudo make install
STEP 5 - Build OPEN PHP Extension
cd wallet-core/open-platform/php
make
sudo make install
Getting Started
require_once('lib/OPEN.php');
Simple usage looks like:
$open = new OPEN(); $result = $open->generateWallet(); echo $result;