PHP code example of jszgjsj / laravel-doudian

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

    

jszgjsj / laravel-doudian example snippets


    Oneself\DouDian\DouDianServiceProvider::class
shell
php artisan vendor:publish --provider="Oneself\DouDian\DouDianServiceProvider"
 php
use Oneself\DouDian\DouDian;

$doudian = new DouDian(config('doudian.default'));# 支持多开放平台切换
$doudian->setShopId('店铺ID')->order->orderDetail(["shop_order_id"=>'店铺订单号']);