bcscoder/rajaongkir

Laravel + rajaongkir API.
83 1
Install
composer require bcscoder/rajaongkir
Latest Version:0.3
PHP:>=5.3.0
License:BSD-2-Clause
Last Updated:Dec 9, 2015
Links: GitHub  ·  Packagist
Maintainer: yusida

rajaongkir

Laravel + Rajaongkir API

Intallation

via composer

"require-dev": {
    "bcscoder/rajaongkir": "dev-master"
}

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Bcscoder\Rajaongkir\RajaongkirServiceProvider'

After that add new item to alias array in app.php

'RajaOngkir' => 'Bcscoder\Rajaongkir\Facades\Profiler',

Example to use

Get City
$rs = RajaOngkir::getCity();

//that will show all the city
Get Cost
//$weight in gram

$results = RajaOngkir::getCost($origin_city_id,$destination_city_id,$weight,$courier);
tips

You can cache the get city result so it should not make request to server every time you want get the cost from your courier

For more api documentation please Visit rajaongkir

Related Packages

doctrine/dbal

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

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

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

418,291,778 609
nunomaduro/collision

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

394,964,158 4,660

Version History

Version Released PHP Laravel License
0.3 >=5.3.0 BSD-2-Clause
0.2 >=5.3.0 ~4.2 BSD-2-Clause
0.1 >=5.3.0 ~4.0 BSD-2-Clause