PHP code example of kodepandai / laravel-rajaongkir
1. Go to this page and download the library: Download kodepandai/laravel-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/ */
kodepandai / laravel-rajaongkir example snippets
return [
'API_KEY' => env('RAJAONGKIR_KEY', 'somerandomstring'),
'ACCOUNT_TYPE' => env('RAJAONGKIR_TYPE', 'starter')
];
use Kodepandai\LaravelRajaOngkir\Facades\RajaOngkir;
return RajaOngkir::getProvince();
bash
php artisan vendor:publish --tag="rajaongkir-config"