Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stoakes/kmip-php
- Owner: Stoakes
- License: mit
- Created: 2024-11-29T13:46:36.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-02T17:40:47.000Z (about 1 month ago)
- Last Synced: 2024-12-02T18:36:42.100Z (about 1 month ago)
- Language: PHP
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
```