This package is use to link with EasyParcel API Service. Please refer official API documentation for array body.
Via Composer
$ composer require adly/easyparcel
Add this variable to your .env
EASYPARCEL_API_KEY=
EASYPARCEL_URL=
Optional you can publish the configuration.
php artisan vendor:publish --provider="Adly\EasyParcel\EasyParcelServiceProvider"
Notes : All response will return in JSON
Parameter:
- $array (required)
- $exclude (optional)
Example:
$array = [
[
'pick_code' => '55100',
'pick_state' => 'kul',
'pick_country' => 'MY',
'send_code' => '22200',
'send_state' => 'trg',
'send_country' => 'MY',
'weight' => '5',
'date_coll' => '2017-11-08',
]
];
$exclude = '';
return EasyParcel::priceCheck($array, $exculde);
Parameter:
- $array (required)
$array = [
[
// refer EasyParcel API Documentation
]
];
return EasyParcel::makingOrder($array);
Parameter:
- $array (required)
$array = [
[
// refer EasyParcel API Documentation
]
];
return EasyParcel::orderPayment($array);
Parameter:
- $array (required)
$array = [
[
// refer EasyParcel API Documentation
]
];
return EasyParcel::orderStatus($array);
Parameter:
- $array (required)
$array = [
[
// refer EasyParcel API Documentation
]
];
return EasyParcel::parcelStatus($array);
Parameter:
- $array (required)
$array = [
[
// refer EasyParcel API Documentation
]
];
return EasyParcel::trackingParcel($array);
return EasyParcel::creditBalance();
Parameter:
- $array (required)
- $courier (required) (Available : ' 'Pgeon Prime', 'Pgeon Delivery', 'Poslaju', 'Skynet', 'ABX', 'DHL eCommerce', 'Aramex', 'CJ Century', 'UTS', 'ULTIMATE CONSOLIDATORS')
- dropoff (optional) (default = false)
$array = [
[
// refer EasyParcel API Documentation
]
];
$courier = 'DHL eCommerce, Poslaju'; // Must has one courier at least
$dropoff = false;
return EasyParcel::domesticOrder($array, $courier, $dropoff);
v1.0-beta
- Create available function from EasyParcel API
Please see the changelog for more information on what has changed recently.
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
- [Adly Alimin][https://www.linkedin.com/in/adly-alimin-206a92195/]
MIT. Please see the license file for more information.