ncaneldiee / rajaongkir

A PHP library which implement the complete functionality of Raja Ongkir API
MIT License
5 stars 2 forks source link

PHP Raja Ongkir API

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.