PHP code example of kastela-sdp / kastela-sdk-php

1. Go to this page and download the library: Download kastela-sdp/kastela-sdk-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kastela-sdp / kastela-sdk-php example snippets


$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"]));

php composher update