Home

Awesome

Baca ini dalam bahasa: Indonesia

Laravel RajaOngkir API Wrapper

<p align="center"> <img src="https://img.shields.io/static/v1?label=PHP&message=8.0&color=green"> <img src="https://img.shields.io/static/v1?label=Version&message=3.0.0&color=blue"> <img src="https://img.shields.io/static/v1?label=Framework&message=Laravel&color=red"> </p>

Installation

You can install the package via composer:

composer require kodepandai/laravel-rajaongkir

You can publish the config file with:

php artisan vendor:publish --tag="rajaongkir-config"

This is the contents of the published config file:

return [
    'API_KEY' => env('RAJAONGKIR_KEY', 'somerandomstring'),
    'ACCOUNT_TYPE' => env('RAJAONGKIR_TYPE', 'starter')
];

Usage

use Kodepandai\LaravelRajaOngkir\Facades\RajaOngkir;

return RajaOngkir::getProvince();

Credits

This repo used template from spatie

License

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