PHP code example of jacksonit / ghn
1. Go to this page and download the library: Download jacksonit/ghn 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/ */
jacksonit / ghn example snippets
Use Jacksonit\GHN\Facades\GHNCharge;
$data = [
'from_district_id' => '',
'to_district_id' => '',
'weight' => '',
'height' => '',
'length' => '',
'width' => '',
]
GHNCharge::shippingFee($data);