PHPackages                             masbenx/ongkir - 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. masbenx/ongkir

ActiveLibrary[API Development](/categories/api)

masbenx/ongkir
==============

ongkir.info API php parser

07PHP

Since Nov 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/masbenx/L4-Ongkir)[ Packagist](https://packagist.org/packages/masbenx/ongkir)[ RSS](/packages/masbenx-ongkir/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

L4-Ongkir
=========

[](#l4-ongkir)

L4-Ongkir is a laravel 4 wrapper package for  API.

This package is inspired from the package Laravel-4-sis-JNE-owned totox777 which can be downloaded at

Due to the package, there are several coding formats that do not fit with the style of my own so I made this package

Along with the change of the API in ongkir.info, this package will continue I developed in keeping with the format of the API ongkir.info

Version
-------

[](#version)

0.3

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

[](#installation)

add this line to your composer.json and update your composer

```
{
    "require": {
        "masbenx/ongkir": "*"
    }
}
```

This package is compatible with Laravel 4 (but not limited to). If Laravel is detected, the language library from Laravel will be used instead of an own implementation.

Add the service provider in app/config/app.php:

```
'Masbenx\Ongkir\OngkirServiceProvider'
```

Publish the config

```
$ php artisan config:publish masbenx/ongkir
```

##### Config your API-Key in app/config/package/masbenx/ongkir/config.php

[](#config-your-api-key-in-appconfigpackagemasbenxongkirconfigphp)

```
return array(
    'API-Key' => 'your-api-key'
);
```

How To Use
----------

[](#how-to-use)

get courier cost

```
$result = Ongkir::getCost('YOGYAKARTA','JAKARTA PUSAT',1);
```

License
-------

[](#license)

BSD-2-Clause

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/70f77500fad49abadd55015c9e1d0180d241a6c5b910756bcab14f5c0c19ed98?d=identicon)[masbenx](/maintainers/masbenx)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/masbenx-ongkir/health.svg)

```
[![Health](https://phpackages.com/badges/masbenx-ongkir/health.svg)](https://phpackages.com/packages/masbenx-ongkir)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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