PHPackages                             shardanainggolan/laravel-jnt - 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. shardanainggolan/laravel-jnt

ActiveLibrary[API Development](/categories/api)

shardanainggolan/laravel-jnt
============================

Simple JNT api wrapper for Laravel

11PHP

Since Aug 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shardanainggolan/laravel-jnt)[ Packagist](https://packagist.org/packages/shardanainggolan/laravel-jnt)[ RSS](/packages/shardanainggolan-laravel-jnt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel JNT
===========

[](#laravel-jnt)

Simple JNT api wrapper untuk Laravel

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

[](#installation)

Install melalui composer

Minimal versi Laravel 7.x ke atas

```
  composer require aditia/laravel-jnt
```

Masukkan kredensial api JNT Anda pada file .env

```
JNT_API_USERNAME= #username Anda
JNT_API_KEY= #api key Anda
JNT_API_URL= #api url JNT yang digunakan
```

Usage
-----

[](#usage)

### Tracking Nomor Resi

[](#tracking-nomor-resi)

```
use Nextlogique\Jnt\Facades\Jnt;

$noResi = 'XXXXXXXXXXX';

$response = Jnt::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 Nextlogique\Jnt\Facades\Jnt;
use Nextlogique\Jnt\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 = Jnt::generateAwb($body);

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

### Cek Ongkir

[](#cek-ongkir)

```
use Nextlogique\Jnt\Facades\Jnt;
use Nextlogique\Jnt\Http\Requests\TariffRequest;

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

$response = Jnt::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 Nextlogique\Jnt\Facades\Jnt;
use Nextlogique\Jnt\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 = Jnt::stockAwb($body);

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

### Pickup or Cashless

[](#pickup-or-cashless)

```
// TO-DO
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3878b7f859cb892b1638cf61ab2f3eb4263e7b376bbfae1d588ce1819047ba10?d=identicon)[shardanainggolan](/maintainers/shardanainggolan)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/shardanainggolan-laravel-jnt/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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