定制 brianrizqi/rajaongkirapipro 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

brianrizqi/rajaongkirapipro

Composer 安装命令:

composer require brianrizqi/rajaongkirapipro

包简介

Rajaongkir Pro for Laravel 6

README 文档

README

Installation

Via Composer

$ composer require brianrizqi/rajaongkirapipro

Usage

add config from php artisan vendor:publish

add .env

RAJAONGKIR_ENDPOINTAPI=https://pro.rajaongkir.com/api/
RAJAONGKIR_APIKEY=your-api-key
RAJAONGKIR_ORIGIN=subdistrict_id or city_id
RAJAONGKIR_ORIGIN_TYPE=subdistrict or city 
Province::all() -> get all province
Province::find(id) -> get spesific province by id
Province::cities($province_id) -> get city from provinces
City::all() -> get all city
City::find(id) -> get spesific city by id
City::subdistrict($city_id) -> get subdistrict from city
Subdistrict::find($id) -> get spesific subdistrict by id
Api::calculateCost($city_id or $subdistrict_id, 'city' or 'subdistrict',weight, courier) -> check cost
Api::waybill($waybill,$courier)

Security

If you discover any security related issues, please email rizqibrian27@gmail.com instead of using the issue tracker.

License

license. Please see the license file for more information.

统计信息

  • 总下载量: 578
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-16