PHP code example of shopex / luban
1. Go to this page and download the library: Download shopex/luban 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/ */
shopex / luban example snippets
class MyServiceReslover{
public function reslove($service){
return env('SERVICE_'.$service);
}
}
Shopex\Luban\Client::setReslover(new MyServiceReslover);
$dealer = Shopex\Luban\Client::Dealer();
$dealer->Deal($dealRequest);