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

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

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

628,058,007 9,707
laravel/framework

The Laravel Framework.

576,155,700 34,907
laravel/tinker

Powerful REPL for the Laravel framework.

485,678,092 7,440