PHP code example of ncaneldiee / rajaongkir-laravel

1. Go to this page and download the library: Download ncaneldiee/rajaongkir-laravel 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-laravel example snippets


    ...
    'Ncaneldiee\Rajaongkir\Laravel\RajaongkirServiceProvider',
    ...

    ...
    'Rajaongkir\Domestic' => 'Ncaneldiee\Rajaongkir\Laravel\RajaongkirDomesticFacade',
    'Rajaongkir\International' => 'Ncaneldiee\Rajaongkir\Laravel\RajaongkirInternationalFacade',
    ...

Rajaongkir\Domestic::cost($origin, $destination, $weight, $courier);

Rajaongkir\Domestic::waybill($tracking_number, $courier);
config/app.php
config/app.php
bash
$ php artisan vendor:publish