bpi / sdk
此包最新版本(4.2.4)没有可用的许可证信息。
BPI SDK.
4.2.4
2023-07-04 09:14 UTC
Requires
- php: ^7 || ^8
- guzzlehttp/guzzle: ^7
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-09-04 11:52:40 UTC
README
安装依赖项(跳过开发依赖项)
composer install --no-dev
用法
<?php
include_once __DIR__ . '/vendor/autoload.php';
include_once __DIR__ . '/Bpi/Sdk/Bpi.php';
$bpi = new Bpi(…);
$nodes = $bpi->searchNodes([]);
…
运行测试
安装开发依赖项
composer install
运行所有单元测试
./vendor/bin/phpunit
运行网络服务测试
BPI_WS_ENDPOINT=http://bpi-web-service.vm BPI_WS_AGENCY_ID=200100 BPI_WS_API_KEY=98c645c7e2882e7431037caa75ca5134 BPI_WS_SECRET_KEY=90eb05e4fbc327d3f455fb7576c493d3872fca7f ./vendor/bin/phpunit --stop-on-failure Tests/WebService/