PHP code example of oomag / cryptoprocessing
1. Go to this page and download the library: Download oomag/cryptoprocessing 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/ */
oomag / cryptoprocessing example snippets
//Register new user
$user = Cryptoprocessing\Authentication::register($email,$password);
//Send transaction to different addresses
$transaction = Cryptoprocessing\Transaction::createTransaction($accountId, array(
'from' => [
$mainAddress, $testAddress
],
'to' =>
[
array('amount' => '100','address' => $firstAddress),
array('amount' => '100','address' => $secondAddress)
],
));