ictorch/icsap
最新稳定版本:v0.2.0
Composer 安装命令:
composer require ictorch/icsap
包简介
library to consume sap webservices
README 文档
README
library to consume sap service layer
Usage
// get data form sap $sapClient = (new SapClientFactory())(); $query = http_build_query([ '$select'=>"CardCode,CardName", '$filter'=>"CardType eq 'cSupplier'" ]); $response = $this->sapClient->fetch("BusinessPartners?$query", HTTP_GET, [], ["Prefer" => "odata.maxpagesize=100"]);
// put data to sap $sapClient = (new SapClientFactory())(); try { $response = $this->sapClient->fetch("Items", HTTP_POST, [ "ItemCode" => "i001", "ItemName" => "Item1", "ItemType" => "itItem" ]); } catch (\SapException $e) { print_r($e->getJsonErrors()); }
统计信息
- 总下载量: 285
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-22