PHP code example of wangta69 / laravel_delivery_tracking

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

    

wangta69 / laravel_delivery_tracking example snippets


yourdomain.com/delivery-tracking/{courier}/{invoicenumber}/{type?}

use Pondol\DeliveryTracking\Traits\Tracking;
..........
class YourController  {
  use Tracking;

  public function tracking(Request $request, $courier, $invoicenumber) {
    $this->_tracking($courier, $invoicenumber); // ['error', 'status', 'logs']; // 배송 로그 조회
    $this->_couriers(); // ['error', 'status', 'logs']; // 서비스 중인 택배사 정보 조회
  }
}