PHPackages                             tajulasri/easy-parcel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tajulasri/easy-parcel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tajulasri/easy-parcel
=====================

Easy parcel PHP client

1.0(6y ago)228[1 issues](https://github.com/tajulasri/php-easy-parcel/issues)MITPHPCI failing

Since Jun 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tajulasri/php-easy-parcel)[ Packagist](https://packagist.org/packages/tajulasri/easy-parcel)[ RSS](/packages/tajulasri-easy-parcel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Easy parcel PHP Package
-----------------------

[](#easy-parcel-php-package)

[![Build Status](https://camo.githubusercontent.com/36671a4888977d7f6165a6dd31b63bd736cf820d684e93ba9f26136029e9c089/68747470733a2f2f7472617669732d63692e6f72672f74616a756c617372692f7068702d656173792d70617263656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tajulasri/php-easy-parcel)

Documentation:

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

```
composer require tajulasri/easy-parcel
```

Available Actions
-----------------

[](#available-actions)

```
    const CREDIT_BALANCE_CHECKING = 'EPCheckCreditBalance';
    const NORMAL_RATE_CHECKING = 'EPNormalRateCheckingBulk';
    const ORDER_STATUS_BULK = 'EPOrderStatusBulk';
    const PARCEL_STATUS_BULK = 'EPParcelStatusBulk';
    const PAY_ORDER_BULK = 'EPPayOrderBulk';
    const RATE_CHECKING_BULK = 'EPRateCheckingBulk';
    const SUBMIT_ORDER_BULK = 'EPSubmitOrderBulk';
    const TRACKING_BULK = 'EPTrackingBulk';
```

Example of usages
-----------------

[](#example-of-usages)

### 1. Checking credit balance

[](#1-checking-credit-balance)

```
require_once __DIR__.'/vendor/autoload.php';

use EasyParcel\ClientFactory;
use GuzzleHttp\Client as HttpClient;

$apiKey = 'sample_api_key';

$client = ClientFactory::make($apiKey)
    ->action(Action::CREDIT_BALANCE_CHECKING)
    ->useSandbox()
    ->setup();

//since we return Psr\Http\Message\ResponseInterface
//please refer http://docs.guzzlephp.org/en/stable/quickstart.html#using-responses
//for more info about how to use those response
$response = $client->dispatch();
print_r($response->getBody()->getContents());
```

### 2. Checking rate

[](#2-checking-rate)

```
require_once __DIR__.'/vendor/autoload.php';

use EasyParcel\ClientFactory;
use GuzzleHttp\Client as HttpClient;

$apiKey = 'sample_api_key';

$client = ClientFactory::make($apiKey)
    ->action(Action::RATE_CHECKING_BULK)
    ->useSandbox()
    ->setup([
        'bulk' => [
            [
                'pick_code' => '10050',
                'pick_state' => 'png',
                'pick_country' => 'MY',
                'send_code' => '11950',
                'send_state' => 'png',
                'send_country' => 'MY',
                'weight' => '5',
                'width' => '0',
                'length' => '0',
                'height' => '0',
                'date_coll' => '2017-11-08',
            ],
        ],
    ]);

$response = $client->dispatch();
print_r($response->getBody()->getContents());
```

### 3. Parcel Status checking

[](#3-parcel-status-checking)

```
require_once __DIR__.'/vendor/autoload.php';

use EasyParcel\ClientFactory;
use GuzzleHttp\Client as HttpClient;

$apiKey = 'sample_api_key';

$client = ClientFactory::make($apiKey)
    ->action(Action::PARCEL_STATUS_BULK)
    ->useSandbox()
    ->setup([
        'bulk' => [
            [
               'order_no'   => 'EI-AAGWD',
            ],
        ],
    ]);

$response = $client->dispatch();
print_r($response->getBody()->getContents());
```

### 4. Making order

[](#4-making-order)

```
require_once __DIR__.'/vendor/autoload.php';

use EasyParcel\ClientFactory;
use GuzzleHttp\Client as HttpClient;

$apiKey = 'sample_api_key';

$client = ClientFactory::make($apiKey)
    ->action(Action::SUBMIT_ORDER_BULK)
    ->useSandbox()
    ->setup([
        'bulk' => [
            [
               'weight' => '1',
                'width' => '0',
                'length'    => '0',
                'height'    => '0',
                'content'   => '2017-09-14 - book',
                'value' => '20',
                'service_id'    => 'EP-CS0W',
                'pick_point'    => 'PGEON_P_JJT',
                'pick_name' => 'Yong Tat',
                'pick_company'  => 'Yong Tat Sdn Bhd',
                'pick_contact'  => '+6012-1234-5678',
                'pick_mobile'   => '+6017-1234-5678',
                'pick_addr1'    => 'ppppp46/7 adfa',
                'pick_addr2'    => 'test',
                'pick_addr3'    => 'test',
                'pick_addr4'    => '',
                'pick_city' => 'NT',
                'pick_state'    => 'NT',
                'pick_code' => '14300',
                'pick_country'  => 'MY',
                'send_point'    => 'PGEON_P_E',
                'send_name' => 'Sam',
                'send_company'  => '',
                'send_contact'  => '+6012-2134567',
                'send_mobile'   => '+6017-1234-5678',
                'send_addr1'    => 'ssssadsasdst test',
                'send_addr2'    => 'test test',
                'send_addr3'    => 'test',
                'send_addr4'    => '',
                'send_city' => 'NT',
                'send_state'    => 'NT',
                'send_code' => '11950',
                'send_country'  => 'MY',
                'collect_date'  => '2017-11-10',
                'sms'   => '1',
                'send_email'    => 'xxxxxx@hotmail.com',
                'hs_code'   => 'yshs_code'
            ],
        ],
    ]);

$response = $client->dispatch();
print_r($response->getBody()->getContents());
```

### Contribution

[](#contribution)

Any issues can be addresses on repository issues board.

### Testing

[](#testing)

```
./vendor/bin/phpunit
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2521d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4cfd2de990b9195bd43e51fe0ed98327a47655854e6c2c8e95688b61832ea6f?d=identicon)[tajul\_asri](/maintainers/tajul_asri)

---

Top Contributors

[![tajulasri](https://avatars.githubusercontent.com/u/6530495?v=4)](https://github.com/tajulasri "tajulasri (1 commits)")

---

Tags

easy-parcelphpphp-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tajulasri-easy-parcel/health.svg)

```
[![Health](https://phpackages.com/badges/tajulasri-easy-parcel/health.svg)](https://phpackages.com/packages/tajulasri-easy-parcel)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
