PHP code example of ncaneldiee / rajaongkir

1. Go to this page and download the library: Download ncaneldiee/rajaongkir library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ncaneldiee / rajaongkir example snippets


use Ncaneldiee\Rajaongkir;

$rajaongkir = new Rajaongkir\Domestic(YOUR_API_KEY);

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

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