Package Data | |
---|---|
Maintainer Username: | yusida |
Maintainer Contact: | bcscoder@gmail.com (bcscoder) |
Package Create Date: | 2014-08-18 |
Package Last Update: | 2015-12-09 |
Language: | PHP |
License: | BSD-2-Clause |
Last Refreshed: | 2024-11-19 03:01:14 |
Package Statistics | |
---|---|
Total Downloads: | 80 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 4 |
Total Open Issues: | 1 |
Laravel + Rajaongkir API
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',
$rs = RajaOngkir::getCity();
//that will show all the city
//$weight in gram
$results = RajaOngkir::getCost($origin_city_id,$destination_city_id,$weight,$courier);
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