PHP code example of zulucrypto / mobius-php

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

    

zulucrypto / mobius-php example snippets


// Main object for working with the API
$mobius = new Mobius($API_KEY);

// Retrieves an object to work with the DApp store
$appStore = $mobius->getAppStore($APP_UID);

// Easily query a user's balance
$userBalance = $appStore->getBalance($EMAIL);

// Use 5 MOBI and get the user's updated balance
$userBalance = $appStore->useBalance($EMAIL, 5);

bash
$ composer