New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bcscoder/rajaongkir

Laravel + rajaongkir API.
83 1
Install
composer require bcscoder/rajaongkir
Latest Version:0.3
PHP:>=5.3.0
Older releases:4
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...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

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

429,221,767 607
nunomaduro/collision

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

407,699,310 4,663

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