PHP code example of uutan / fulu

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

    

uutan / fulu example snippets


use uutan\Fulu\FuLuFactory;

$config = [
    'app_key' => '',
    'serect' => '',
];

// 话费充值接口
$obj = FuLuFactory::factory('fulu.order.mobile.add',$config);

$obj->send([
    'charge_phone' => '186XXX',
    'charge_value' => '50',
    'customer_order_no' => '外部订单号',
]);