1. Go to this page and download the library: Download drcayman/huayixingguang 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/ */
drcayman / huayixingguang example snippets
$config = ['client_id'=>'','client_secret'=>'','url'=>''];
$obj = new \Drcayman\Huayixingguang\ProductsObj\ProductsList();
$obj->page = '1';
$lite = new \Drcayman\Huayixingguang\Lite($config);
var_dump($lite->exec($obj));
$config = ['client_id'=>'','client_secret'=>'','url'=>''];
$obj = new \Drcayman\Huayixingguang\ProductsObj\Products();
$obj->id = '201795428763';
$lite = new \Drcayman\Huayixingguang\Lite($config);
var_dump($lite->getProducts($obj));