PHPackages                             yusufthedragon/jne-php - 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. [API Development](/categories/api)
4. /
5. yusufthedragon/jne-php

ActiveLibrary[API Development](/categories/api)

yusufthedragon/jne-php
======================

PHP Clients for JNE API

0.5.0(5y ago)13321GPL-3.0-onlyPHPPHP &gt;=7.2.0

Since Nov 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yusufthedragon/jne-php)[ Packagist](https://packagist.org/packages/yusufthedragon/jne-php)[ RSS](/packages/yusufthedragon-jne-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

PHP Client for JNE API
======================

[](#php-client-for-jne-api)

Unofficial library for access [JNE API](https://apidash.jne.co.id/) from PHP applications.

- [Installation](#installation)
- [Usage](#usage)
    - [Set the Username and API Key](#set-the-username-and-api-key)
    - [Set the Production Mode](#set-the-production-mode)
- [Usages and Examples](#usages-and-examples)
    - [Fare](#fare)
        - [Get Fares](#get-fares)
    - [JNE Online Booking Number](#jne-online-booking-number)
        - [Create JOB](#create-job)
    - [AirWayBill](#airwaybill)
        - [Register AirWayBill Number](#register-airwaybill-number)
    - [Tracking](#tracking)
        - [Trace the Package](#trace-the-package)
- [Contributing](#contributing)

---

Installation
------------

[](#installation)

Install jne-php with composer by following command:

```
composer require yusufthedragon/jne-php
```

or add it manually in your `composer.json` file.

Usage
-----

[](#usage)

### Set the Username and API Key

[](#set-the-username-and-api-key)

Setup the package with your account's username and api key obtained from [JNE](https://apidash.jne.co.id).

```
\YusufTheDragon\JNE\JNE::setUsername('username')->setApiKey('apiKey');
```

### Set the Production Mode

[](#set-the-production-mode)

When deploying your application to production, you may want to change API Endpoint to production as well by setting `setProductionMode` to `true`.

```
\YusufTheDragon\JNE\JNE::setProductionMode(true);
// or chain it
\YusufTheDragon\JNE\JNE::setUsername('username')->setApiKey('apiKey')->setProductionMode(true);
```

Usages and Examples
-------------------

[](#usages-and-examples)

### Fare

[](#fare)

#### Get Fares

[](#get-fares)

Retrieve available fares based on origin and destination code.

```
\YusufTheDragon\JNE\Fare::getFares(array $parameters);
```

Usage example:

```
$params = [
    'from' => 'CGK10000',
    'thru' => 'BDO10000',
    'weight' => 1
];

$getFares = \YusufTheDragon\JNE\Fare::getFares($params);

var_dump($getFares);
```

### JNE Online Booking Number

[](#jne-online-booking-number)

#### Create JOB

[](#create-job)

```
\YusufTheDragon\JNE\JOB::create(array $parameters);
```

Usage example:

```
$params = [
    'SHIPPER_NAME' => 'John Doe',
    'SHIPPER_ADDR1' => 'Jl. Custom Address No. 10',
    'SHIPPER_CITY' => 'JAMBI',
    'SHIPPER_ZIP' => '36136',
    'SHIPPER_REGION' => 'JAMBI',
    'SHIPPER_COUNTRY' => 'INDONESIA',
    'SHIPPER_CONTACT' => 'John Doe',
    'SHIPPER_PHONE' => '+6287793443322',
    'RECEIVER_NAME' => 'Jane Doe',
    'RECEIVER_ADDR1' => 'Jl. Custom Address No. 20',
    'RECEIVER_CITY' => 'TANGERANG SELATAN',
    'RECEIVER_ZIP' => '31264',
    'RECEIVER_REGION' => 'BANTEN',
    'RECEIVER_COUNTRY' => 'INDONESIA',
    'RECEIVER_CONTACT' => 'Jane Doe',
    'RECEIVER_PHONE' => '+6287793443322',
    'ORIGIN_DESC' => 'Custom Description',
    'ORIGIN_CODE' => 'CGK10100',
    'DESTINATION_DESC' => 'Dummy Description',
    'DESTINATION_CODE' => 'CGK10101',
    'SERVICE_CODE' => 'REG',
    'WEIGHT' => 1,
    'QTY' => 1,
    'GOODS_DESC' => 'Goods Description',
    'DELIVERY_PRICE' => 9000,
    'BOOK_CODE' => 'NT-52744198231'
];

$createJOB = \YusufTheDragon\JNE\JOB::create($params);

var_dump($createJOB);
```

### AirWayBill

[](#airwaybill)

#### Register AirWayBill Number

[](#register-airwaybill-number)

```
\YusufTheDragon\JNE\AirWayBill::register(array $parameters);
```

Usage example:

```
$params = [
    'ORDER_ID' => '',
    'AWB_NUMBER' => ''
];

$registerAWB = \YusufTheDragon\JNE\AirWayBill::register($params);

var_dump($registerAWB);
```

### Tracking

[](#tracking)

#### Trace the Package

[](#trace-the-package)

```
\YusufTheDragon\JNE\Tracking::trace(string $awbNumber);
```

Usage examples

```
$tracePackage = \YusufTheDragon\JNE\Tracking::trace('0114541900204500');

var_dump($tracePackage);
```

License
-------

[](#license)

This library is open-sourced software licensed under the [GPL-3.0-only License](https://opensource.org/licenses/gpl-3.0.html).

Contributing
------------

[](#contributing)

For any requests, bugs, or comments, please open an [issue](https://github.com/yusufthedragon/jne-php/issues) or [submit a pull request](https://github.com/yusufthedragon/jne-php/pulls).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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 ~2 days

Total

5

Last Release

2055d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26558083?v=4)[Yusuf Ardi](/maintainers/yusufthedragon)[@yusufthedragon](https://github.com/yusufthedragon)

---

Top Contributors

[![yusufthedragon](https://avatars.githubusercontent.com/u/26558083?v=4)](https://github.com/yusufthedragon "yusufthedragon (7 commits)")

---

Tags

JNE

### Embed Badge

![Health badge](/badges/yusufthedragon-jne-php/health.svg)

```
[![Health](https://phpackages.com/badges/yusufthedragon-jne-php/health.svg)](https://phpackages.com/packages/yusufthedragon-jne-php)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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