masbenx/ongkir
Composer 安装命令:
composer require masbenx/ongkir
包简介
ongkir.info API php parser
README 文档
README
L4-Ongkir is a laravel 4 wrapper package for http://ongkir.info API.
This package is inspired from the package Laravel-4-sis-JNE-owned totox777 which can be downloaded at https://github.com/totox777/Laravel-4-Ongkir-JNE/
Due to the package, there are several coding formats that do not fit with the style of my own so I made this package
Along with the change of the API in ongkir.info, this package will continue I developed in keeping with the format of the API ongkir.info
Version
0.3
Installation
add this line to your composer.json and update your composer
{
"require": {
"masbenx/ongkir": "*"
}
}
This package is compatible with Laravel 4 (but not limited to). If Laravel is detected, the language library from Laravel will be used instead of an own implementation.
Add the service provider in app/config/app.php:
'Masbenx\Ongkir\OngkirServiceProvider'
Publish the config
$ php artisan config:publish masbenx/ongkir
Config your API-Key in app/config/package/masbenx/ongkir/config.php
return array( 'API-Key' => 'your-api-key' );
How To Use
get courier cost
$result = Ongkir::getCost('YOGYAKARTA','JAKARTA PUSAT',1);
License
BSD-2-Clause
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2014-11-04