Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stoakes/kmip-php

KMIP client library for PHP
https://github.com/stoakes/kmip-php

Last synced: about 1 month ago
JSON representation

KMIP client library for PHP

Awesome Lists containing this project

README

        

# KMIP-PHP

_The first KMIP client library for PHP_

## Usage

Install the package:

```bash
composer require stoakes/kmip-php
```

Use it:

```php
connect();

$response = $client->createSymmetricKey(CryptographicAlgorithm::AES, 256);

$keyId = $response->batchItem[0]->responsePayload->uniqueIdentifier;

$response = $client->activate($keyId);

$response = $client->get($keyId);

$response = $client->revoke($keyId, RevocationReasonCode::CessationOfOperation);

$response = $client->destroy($keyId);

$client->disconnect();
```