1. Go to this page and download the library: Download thank-song/lecang 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/ */
thank-song / lecang example snippets
use ThankSong\Lecang\Lecang;
$response = Lecang::getProductList(1, 10);
var_dump($response->getData());
var_dump($response->getTotal());
var_dump($response->hasMore());
use ThankSong\Lecang\Request\GetProductListRequest;
$request = new GetProductListRequest();
$request -> setPageNum(1)->setPageSize(10);
$response = $request -> send();
var_dump($response->getData());
var_dump($response->getTotal());
var_dump($response->hasMore());