kastela-sdp/kastela-sdk-php

Kastela SDK for PHP

v0.6.3 2023-10-03 09:29 UTC

README

Related Link

Installation

Add to composer.json

{
    "require": {
        ...
        "kastela-sdp/kastela-sdk-php": "0.6.2"
    }
}

run

php composher update

Usage Example

Credential is required when using the SDK, download it on the entities page.

$kastelaClient = new Client("server.url", "ca/path.crt", "client/credential/path.crt", "client/credential/path.key", );
// decrypt data with id 1,2,3,4,5
$data = $kastelaClient->protection_open(new ProtectionOpenInput("id", ["token1", "token2"]));