sirma-ics/ics-api-sdk
Composer 安装命令:
composer require sirma-ics/ics-api-sdk
包简介
Package implementing ics-api via Guzzle
README 文档
README
Requires PHP 7.0+
Set up:
Run composer install to include the required components.
Create or update your .env file to include the following key variables:
SIRMAICS_API_URL - which should point to the Sirma ICS API('https://ics-api.ics365.com') SIRMAICS_API_USERNAME - the username used to authenticate for Sirma ICS API SIRMAICS_API_PASSWORD - the password used to authenticate for Sirma ICS API SIRMAICS_API_CERT_PATH - path to the SSL certificate file provided for authorization to the API SIRMAICS_API_KEY_PATH - - path to the SSL key file provided for authorization to the API
Usage: Initiate the class you need to use for your purpose as listed:
- class NomenclaturesRequests will return the API nomenclatures, required parameters for every request are specified in the documentation:
- class ShortRequests is used for calculation or issuing using less parameters(used for already registered vehicles), required parameters for every request are specified in the documentation:
- the required parameters for calculation using endpoint shortCalc: here
- the required parameters for issuing a policy using endpoint shortIssue (listed in the part for /liability/policy-short): here
- the required parameters for issuing a policy and payment for first installment using endpoint shortIssueWithPayment: here
-
class LongRequests is used for calculation or issuing using full information, required parameters for every request are specified in the documentation:
- the required parameters for calculation using endpoint longCalc: here
- the required parameters for issuing a policy using endpoint longIssue (listed in the part for /liability/policy-short): here
- the required parameters for issuing a policy and payment for first installment using endpoint longIssueWithPayment: here
-
class PolicyRequests requests for already registered policies, required parameters for every request are specified the documentation:
- endpoint policyNote issues a payment for a policy with specified installment number, the required parameters are listed: here
- endpoint policyFullInfo give full information about a policy, the required parameters are listed: here
- endpoint policyPrint returns a pdf format for an issued policy and it's additional prints by given hash, the required parameters are listed: here
Use the package by requiring it:
composer require sirma-ics/ics-api-sdk
Sample usage of the package would be:
//load proper $_ENV package configuration - it is strongly advised to use any phpdotenv package for storing such configuration. $api = new NomenclaturesRequest(); $countries = $api->getCountries();
For more information and access to the API, please write to support@sirmaics.com
sirma-ics/ics-api-sdk 适用场景与选型建议
sirma-ics/ics-api-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 111 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sirma-ics/ics-api-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sirma-ics/ics-api-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 111
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2020-03-13