bpi/sdk

There is no license information available for the latest version (4.2.4) of this package.

BPI SDK.

Installs: 199

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 9

Type:application

4.2.4 2023-07-04 09:14 UTC

README

Installation

Install dependencies (skipping dev dependencies):

composer install --no-dev

Usage

<?php
include_once __DIR__ . '/vendor/autoload.php';
include_once __DIR__ . '/Bpi/Sdk/Bpi.php';

$bpi = new Bpi(…);
$nodes = $bpi->searchNodes([]);
…

Running tests

Install dev dependencies:

composer install

Run all unit tests:

./vendor/bin/phpunit

Run web service tests:

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/