PHP code example of smartjson / laravel-doudian

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

    

smartjson / laravel-doudian example snippets

bash
php artisan vendor:publish --provider="SmartJson\DouDian\DouDianServiceProvider"
 php
$response = app('doudian')->shop->getShopCategory(['cid' => 0]);
dd($response);
 php
app('doudian')->setShopId($shopId)->order->orderDetail(["shop_order_id"=>'5557097346351159555']);