brightnucleus/jasper-client
Composer 安装命令:
composer require brightnucleus/jasper-client
包简介
SOAP client to interact with the Jasper Wireless Control Center.
README 文档
README
SOAP client to interact with the Jasper Wireless Control Center.
This library is not yet feature-complete and still a work-in-progress.
Table Of Contents
Installation
The best way to use this package is through Composer:
composer require brightnucleus/jasper-client
Basic Usage
The general usage is pretty simple. You fetch an instance of the client you need, and then call one of its methods, passing in the corresponding request value object to set the parameters.
Example:
use Brightucleus\JasperClient\EchoClient; use Brightucleus\JasperClient\SoapTypes\EchoClient\EchoRequest; $client = new EchoClient(); $result = $client->echo(new EchoRequest('Hello World!')); echo $result->getValue(); // Output: 'Hello World!'
To find out how to configure a request, see the constructor in the corresponding request value object.
A specific request will always return the matching response, provided the request was successful.
If the request was unsuccessful, a SoapException will be thrown.
Running The Tests
To run the tests, you need to set environment variables, so that the test code knows how to connect to the correct Jasper environment.
export CISCO_JASPER_API_ENVIRONMENT=sandbox export CISCO_JASPER_API_LICENSE_KEY=<your API license key> export CISCO_JASPER_USERNAME=<login username> export CISCO_JASPER_PASSWORD=<login password> export CISCO_JASPER_TEST_ACCOUNT_ID=<test account ID>
Then you can run all the tests with the following command:
vendor/bin/phpunit
To run only a specific test suite, you can use the following command:
vendor/bin/phpunit --testsuite=<suites to test, separated with commas>
You can get a list of available test suites with the following command:
vendor/bin/phpunit --list-suites
Contributing
All feedback / bug reports / pull requests are welcome.
License
Copyright (c) 2017 Alain Schlesser, Bright Nucleus
This code is licensed under the MIT License.
brightnucleus/jasper-client 适用场景与选型建议
brightnucleus/jasper-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 77 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 08 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 brightnucleus/jasper-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brightnucleus/jasper-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-16