ncaneldiee/rajaongkir

PHP Raja Ongkir API

v1.0.1 2017-09-18 11:21 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:12:30 UTC


README

Latest Version Total Download Software License

A PHP library which implement the complete functionality of Raja Ongkir API.

Courier services : jne, pos, tiki, esl, pcp, rpx, cahaya, dse, first, indah, jet, jnt, nss, ncs, pahala, pandu, sap, sicepat, slis, star, wahana.

Requirements

  1. PHP 5.6+ with cURL and mbstring extension
  2. Composer

Installation

Using composer.

$ composer require ncaneldiee/rajaongkir

Example

use Ncaneldiee\Rajaongkir;

$rajaongkir = new Rajaongkir\Domestic(YOUR_API_KEY);

$rajaongkir->cost($origin, $destination, $weight, $courier);

$rajaongkir->waybill($tracking_number, $courier);

Full documentation can be found at the wiki.

License

The MIT License (MIT). Please see LICENSE for more information.