PHPackages                             elhakim\_dev/api-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. elhakim\_dev/api-ongkir

ActiveLibrary

elhakim\_dev/api-ongkir
=======================

A minimal api for shipment integration

07PHP

Since Nov 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/elhakimdev/api-ongkir)[ Packagist](https://packagist.org/packages/elhakim_dev/api-ongkir)[ RSS](/packages/elhakim-dev-api-ongkir/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Project Title
=============

[](#project-title)

A minimalis shipment cost service for laravel indonesian shipping company.

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

[](#prerequisites)

The things you need before installing the software.

- orchestra/testbench: ^6.22
- phpunit/phpunit: ^9.5
- php: ^7.3

### Installation

[](#installation)

A step by step guide that will tell you how to get the development environment up and running.

```
$ composer require elhakim_dev/api-ongkir

```

after this installation was done, go to `config/app.php` to register service provider by adding `ShipmentServiceProvider::class,` on `providers` array,

after it, register facade class to using facade provided by laravel core, following instruction :

1. in `config/app.php` adding a `'Shipment' => ShipmentFacade::class,` in array of `aliases`.

after all step done, `composer dump-autoload` to refresh autoload class map.

installation done !!.

Usage
-----

[](#usage)

A few examples of useful commands and/or tasks.

before use this package, dont forget to adding a environment variable

```
PROVIDER_API_KEY=your-api-key
PROVIDER_ACCOUNT_TYPE=starter
PROVIDER_NAME=rajaongkir

```

in your `.env` configuration file, to make sure that this package is run normally.

since we have done to registering service provider and facade alias, so we can use its package via facade or class, because using facade is free to use in anything place, ex: route, controller,etc. facade is available globally after we have done registering this package into lravel app.

we recommended using facade class. please follow this instruction

```
example using facade in route :

Route::get('/test',function(Request $request){
    return Shipment::call('GET','http://api.rajaongkir.com/starter/province',[]);
}); // test get

Route::post('/test',function(Request $request){
    return Shipment::call('POST','http://api.rajaongkir.com/starter/province',[

    ]); // tes post
});

```

note: use HTTP instead HTTPS;

### Branches

[](#branches)

- Master: main branch for deployment
- Develop: stagging and testing branch
- Feature: To research and adding new feature

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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/10d4fa3f4725b16ba8aeb85a904e4ddef190c9ea3ac76e5f9f2b741b2cefe2f7?d=identicon)[elhakimdev](/maintainers/elhakimdev)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/elhakim-dev-api-ongkir/health.svg)

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

PHPackages © 2026

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