PHP code example of sagleft / mfcoin-php

1. Go to this page and download the library: Download sagleft/mfcoin-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/ */

    

sagleft / mfcoin-php example snippets


    composer 

    $mfcoin = new MFCoin\Client('username','password');
    

    $mfcoin = new MFCoin\Client('username','password','localhost','22824');
    

    $mfcoin->setSSL('/full/path/to/mycertificate.cert');
    

    $mfcoin->getinfo();
    
    $mfcoin->getrawtransaction('7ce62a44093ee359d86a1707ecf362925afcc918ba38c837dfa42f89572a6816',1);
    
    $mfcoin->getblock('fbbb5b7f32e562387dc377c24c99778ced80ca726a3cd4bb3bcb13b652f3f6e1');
    

    print_r($mfcoin->help());