PHPackages                             sianggit/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. sianggit/jne-php

ActiveLibrary[API Development](/categories/api)

sianggit/jne-php
================

PHP Clients for JNE API

0.5.21(2y ago)024GPL-3.0-onlyPHPPHP &gt;=7.2.0

Since Feb 23Pushed 2y agoCompare

[ Source](https://github.com/sianggit/jne-php)[ Packagist](https://packagist.org/packages/sianggit/jne-php)[ RSS](/packages/sianggit-jne-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (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.

Originally created by yusufthedragon/jne-php.

- [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 Pickup or Cashless](#jne-online-pickup-or-cashless)
    - [Tracking](#tracking)
        - [Trace the Package](#trace-the-package)
- [Contributing](#contributing)

---

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

[](#installation)

Install jne-php with composer by following command:

```
composer require sianggit/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).

```
\Agt\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`.

```
\Agt\JNE\JNE::setProductionMode(true);
// or chain it
\Agt\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.

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

Usage example:

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

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

var_dump($getFares);
```

### JNE Online Pickup or Cashless

[](#jne-online-pickup-or-cashless)

```
\Agt\JNE\Pickup::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 = \Agt\JNE\Pickup::create($params);

var_dump($createJOB);
```

### Tracking

[](#tracking)

#### Trace the Package

[](#trace-the-package)

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

Usage examples

```
$tracePackage = \Agt\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/sianggit/jne-php/issues) or [submit a pull request](https://github.com/sianggit/jne-php/pulls).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 63.6% 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 ~87 days

Total

5

Last Release

877d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00df08a4bf09b1fb792a771bd815a5f681ae5a3af0c4f029fa8e7ffa407367a1?d=identicon)[sianggit](/maintainers/sianggit)

---

Top Contributors

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

---

Tags

JNE

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/sianggit-jne-php/health.svg)](https://phpackages.com/packages/sianggit-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)
