PHP code example of azis-alvriyanto / shopee-express-waybill

1. Go to this page and download the library: Download azis-alvriyanto/shopee-express-waybill 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/ */

    

azis-alvriyanto / shopee-express-waybill example snippets


use AzisAlvriyanto\ShopeeExpressWaybill\ShopeeExpressWaybill;

// Initialize
$shopeeExpressWaybill = new ShopeeExpressWaybill();

// Example: Check shipping number
$response = $shopeeExpressWaybill->check('SPXID133333333337');

// Output response
if ($response->success) {
    echo "Success: " . $response->message;
    print_r($response->data);
} else {
    echo "Error: " . $response->message;
}