PHPackages                             aditia/laravel-jne - 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. aditia/laravel-jne

ActiveLibrary[API Development](/categories/api)

aditia/laravel-jne
==================

Simple JNE api wrapper for Laravel

v1.0.1(4y ago)3442MITPHPPHP ^7.4|^8.0

Since May 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pikarin/laravel-jne)[ Packagist](https://packagist.org/packages/aditia/laravel-jne)[ RSS](/packages/aditia-laravel-jne/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Laravel JNE
===========

[](#laravel-jne)

Simple JNE api wrapper untuk Laravel

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

[](#installation)

Install melalui composer

Minimal versi Laravel 7.x ke atas

```
  composer require aditia/laravel-jne
```

Masukkan kredensial api JNE Anda pada file .env

```
JNE_API_USERNAME= #username Anda
JNE_API_KEY= #api key Anda
JNE_API_URL= #api url JNE yang digunakan
```

Usage
-----

[](#usage)

### Tracking Nomor Resi

[](#tracking-nomor-resi)

```
use Aditia\Jne\Facades\Jne;

$noResi = 'XXXXXXXXXXX';

$response = Jne::tracking($noResi);

$response->cnote; // Object cnote
$response->cnote->cnote_pod_date;

$response->detail; // Object detail
$response->detail->cnote_origin;

foreach ($response->history as $history) {
    $history->date;
    $history->desc;
}
```

### Generate Nomor Resi

[](#generate-nomor-resi)

```
use Aditia\Jne\Facades\Jne;
use Aditia\Jne\Http\Requests\GenerateAwbRequest;

$body = new GenerateAwbRequest([
    'OLSHOP_BRANCH'          => 'CGK000',
    'OLSHOP_CUST'            => '10950700',
    'OLSHOP_ORDERID'         => '23455563348357',
    'OLSHOP_SHIPPER_NAME'    => 'ADIT',
    'OLSHOP_SHIPPER_ADDR1'   => 'AKARTA NO 44',
    'OLSHOP_SHIPPER_ADDR2'   => 'KALIBATA',
    'OLSHOP_SHIPPER_ADDR3'   => 'KALIBATA',
    'OLSHOP_SHIPPER_CITY'    => 'JAKARTA',
    'OLSHOP_SHIPPER_REGION'  => 'JAKARTA',
    'OLSHOP_SHIPPER_ZIP'     => '12345',
    'OLSHOP_SHIPPER_PHONE'   => '+62898XXXXXX',
    'OLSHOP_RECEIVER_NAME'   => 'MURTI',
    'OLSHOP_RECEIVER_ADDR1'  => 'BANDUNG NO 12',
    'OLSHOP_RECEIVER_ADDR2'  => 'CIBIRU',
    'OLSHOP_RECEIVER_ADDR3'  => 'BANDUNG',
    'OLSHOP_RECEIVER_CITY'   => 'BANDUNG',
    'OLSHOP_RECEIVER_REGION' => 'JAWA BARAT',
    'OLSHOP_RECEIVER_ZIP'    => '12345',
    'OLSHOP_RECEIVER_PHONE'  => '+628578XXXXXX',
    'OLSHOP_QTY'             => 1,
    'OLSHOP_WEIGHT'          => 1,
    'OLSHOP_GOODSDESC'       => 'TEST',
    'OLSHOP_GOODSVALUE'      => 1000,
    'OLSHOP_GOODSTYPE'       => 1,
    'OLSHOP_INST'            => 'TEST',
    'OLSHOP_INS_FLAG'        => 'N',
    'OLSHOP_ORIG'            => 'CGK10000',
    'OLSHOP_DEST'            => 'BDO10000',
    'OLSHOP_SERVICE'         => 'REG',
    'OLSHOP_COD_FLAG'        => 'N',
    'OLSHOP_COD_AMOUNT'      => 0,
])

$response = Jne::generateAwb($body);

$response->awb->airwaybill; // nomor resi
```

### Cek Ongkir

[](#cek-ongkir)

```
use Aditia\Jne\Facades\Jne;
use Aditia\Jne\Http\Requests\TariffRequest;

$body = new TariffRequest([
    'from'   => 'CGK10000',
    'thru'   => 'BDO10000',
    'weight' => 1, // dalam kilogram
]);

$response = Jne::tariff($body);

foreach ($response->price as $price) {
    $price->origin_name;
    $price->destination_name;
    $price->service_display;
    $price->service_code;
    $price->goods_type;
    $price->currency;
    $price->price;
    $price->etd_from;
    $price->etd_thru;
    $price->times;
}
```

### Stock Nomor Resi

[](#stock-nomor-resi)

```
use Aditia\Jne\Facades\Jne;
use Aditia\Jne\Http\Requests\StockAwbRequest;

$body = new StockAwbRequest([
    'BRANCH'      => 'AMI000',
    'CUST_ID'     => '80089400',
    'CREATE_BY'   => 'IT',
    'REQUEST_AWB' => 5,
    'REQUEST_BY'  => 'TESTING',
    'REQUEST_NO'  => '006/AWB/LWA965',
    'REASON'      => 'FLASH SALE',
]);

$response = Jne::stockAwb($body);

foreach ($response->awb as $awb) {
    $awb->airwaybill;
}
```

### Pickup or Cashless

[](#pickup-or-cashless)

```
// TO-DO
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

1798d ago

Major Versions

v0.1.0 → v1.0.12021-06-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/b578edca583d86750cce9d8b36b555696805e5afd336ebe82b46caff9fb5ddf2?d=identicon)[pikarin](/maintainers/pikarin)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aditia-laravel-jne/health.svg)

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

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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