adly / easyparcel
Package for EasyParcel API
v1.0-beta
2022-03-23 14:41 UTC
Requires
- illuminate/support: ~9|~8
Requires (Dev)
- orchestra/testbench: ~9
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2025-06-23 22:12:11 UTC
README
This package is use to link with EasyParcel API Service. Please refer official API documentation for array body.
Installation
Via Composer
$ composer require adly/easyparcel
Usage
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
Available commands
Checking Price
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);
Making Order
Parameter:
- $array (required)
$array = [ [ // refer EasyParcel API Documentation ] ]; return EasyParcel::makingOrder($array);
Order Payment
Parameter:
- $array (required)
$array = [ [ // refer EasyParcel API Documentation ] ]; return EasyParcel::orderPayment($array);
Order Status
Parameter:
- $array (required)
$array = [ [ // refer EasyParcel API Documentation ] ]; return EasyParcel::orderStatus($array);
Parcel Status
Parameter:
- $array (required)
$array = [ [ // refer EasyParcel API Documentation ] ]; return EasyParcel::parcelStatus($array);
Tracking Parcel
Parameter:
- $array (required)
$array = [ [ // refer EasyParcel API Documentation ] ]; return EasyParcel::trackingParcel($array);
Check Balance
return EasyParcel::creditBalance();
Domestic Express Order
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);
Change log
v1.0-beta
- Create available function from EasyParcel API
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email adlyalimin@email.com instead of using the issue tracker.
Credits
- [Adly Alimin][https://www.linkedin.com/in/adly-alimin-206a92195/]
License
MIT. Please see the license file for more information.