gufy/rajaongkir
Composer 安装命令:
composer require gufy/rajaongkir
包简介
Alternative Rajaongkir API using Guzzle
README 文档
README
Another alternative of rajaongkir PHP API. It is using GuzzleHttp as its underlying CURL request
Installation
Run this on your composer composer require gufy/rajaongkir
Usage
<?php use Gufy\Rajaongkir\Rajaongkir; use Gufy\Rajaongkir\Province; use Gufy\Rajaongkir\City; use Gufy\Rajaongkir\Cost; use Gufy\Rajaongkir\Waybill; // initialize api. first argument will be your api key, and the second one is your package Rajaongkir::init('your-api-key', 'starter'); // get all provinces $provinces = Province::all(); // get cities $cities = City::all(); // get cities based on province id $cities = City::all($province_id); // get cost $cost = Cost::get(['city'=>$origin_city_id], ['city'=>$destination_city], $weight, 'jne'); // get waybill $cost = Waybill::find('jne', 'your-waybill');
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-29