Skip to content

kodepandai/laravel-rajaongkir

Repository files navigation

Baca ini dalam bahasa: Indonesia

Laravel RajaOngkir API Wrapper

Installation

You can install the package via composer:

composer require kodepintar/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 Kodepintar\LaravelRajaOngkir\Facades\RajaOngkir;

$data = RajaOngkir::getProvince();

return $data;

Credits

This repo used template from spatie

License

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

About

Integrate RajaOngkir API with laravel

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages