PHP code example of aliwang / myanmartools
1. Go to this page and download the library: Download aliwang/myanmartools 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/ */
aliwang / myanmartools example snippets
use aliwang\myanmarTools\MyanmarUpdateOrder;
use aliwang\myanmarTools\MyanmarConfig;
use aliwang\myanmarTools\Myanmar as MyanmarMyanmar;
use aliwang\myanmarTools\NumberType;
//查询
$config = new MyanmarConfig();
$config->setUser('xxxx');
$config->setKey('xxxx');
$config->setDomain('http://account.mmearn.com/');
$myanmar = new MyanmarMyanmar($config);
$res = $myanmar->rechargeQuery('123456789');
//更新订单
$order = new MyanmarUpdateOrder(new UpdateOrder());
$order->rechargeStatus($res,$order);