PHP code example of oomag / cryptoprocessing.php

1. Go to this page and download the library: Download oomag/cryptoprocessing.php 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.php 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)
                ],
        ));