jacksonit/shipping

Shipping Việt Nam Laravel

1.0.1 2020-09-22 09:56 UTC

This package is auto-updated.

Last update: 2024-04-22 17:59:58 UTC


README

API Shipping (Giao hàng nhanh, ...)

Install with composer.

Install (Laravel)

Install via composer

composer require jacksonit/shipping
php artisan vendor:publish --provider="Jacksonit\Shipping\ShippingServiceProvider"

Get shipping Fee GHN

Use Jacksonit\Shipping\GHN;

$data = [
    'from_district_id'  => '',
    'from_ward_code'    => '',
    'to_district_id'    => '',
    'to_ward_code'      => '',
    'weight'            => '',
    'height'            => '',
    'length'            => '',
    'width'             => '',
    'coupon'            => ''
]
$ghn = new GHN();
$record_ghn = $ghn->shippingFee($data);