PHP code example of xyu / sand

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

    

xyu / sand example snippets


Hyperf  调用:
$app = sand_pay()->wechat_mini->orderCreate([]);
fpm框架 调用:
$app = sand($config)->wechat_mini->orderCreate([]);
bash
Hyperf
php bin/hyperf.php vendor:publish xyu/sand
Laravel
php artisan vendor:publish