gufy/laravel-rajaongkir

This is a particular package that make Rajaongkir.com can be used in Laravel 5
58 1
Install
composer require gufy/laravel-rajaongkir
Latest Version:v1.0.0
PHP:>=5.5.9
License:MIT
Last Updated:Jul 3, 2016
Links: GitHub  ·  Packagist
Maintainer: mgufron

Rajaongkir.com API for Laravel

This is a particular package that make Rajaongkir.com can be used in Laravel 5. This package is a wrapper of steevenz/rajaongkir package.

Installation

Just run this on your laravel app

  composer require gufy/laravel-rajaongkir:~1

Then, add this service provider to config/app.php

Gufy\LaravelRajaongkir\LaravelRajaongkirServiceProvider::class

also, add this facade class to your facade section

'Rajaongkir' => Gufy\LaravelRajaongkir\RajaongkirFacade::class

Then, run this command

php artisan vendor:publish

It will publish configuration file on config/rajaongkir.php

Configuration

There are two ways to do this:

  • Directly edit configuration file on config/rajaongkir.php
  • Add configuration on .env file

If you're using the second option, then this is the things you need to do, add this code to your .env file

RAJAONGKIR_API_KEY=your_api_key
RAJAONGKIR_ACCOUNT_TYPE=starter (or basic or advance)

Usage

You go to here for how to use the package: https://github.com/steevenz/rajaongkir#penggunaan

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

634,760,849 9,707
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

493,838,477 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

408,553,772 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

387,976,821 4,658