https://github.com/ironcorelabs/tenant-security-client-php
Client for the Tenant Security Proxy in PHP
https://github.com/ironcorelabs/tenant-security-client-php
application-layer-encryption byok cmk cryptography encryption php
Last synced: 12 months ago
JSON representation
Client for the Tenant Security Proxy in PHP
- Host: GitHub
- URL: https://github.com/ironcorelabs/tenant-security-client-php
- Owner: IronCoreLabs
- License: apache-2.0
- Created: 2021-11-13T16:40:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T18:09:08.000Z (about 1 year ago)
- Last Synced: 2025-07-02T02:07:44.363Z (12 months ago)
- Topics: application-layer-encryption, byok, cmk, cryptography, encryption, php
- Language: PHP
- Homepage:
- Size: 289 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/ironcorelabs/tenant-security-client-php)
[](https://github.com/IronCoreLabs/tenant-security-client-php/actions/workflows/ci.yaml)
[](https://packagist.org/packages/ironcorelabs/tenant-security-client-php)
# Tenant Security Client PHP Library
A PHP client for implementing CMK within a vendor's infrastructure. Makes requests through an
IronCore Tenant Security Proxy to tenants' KMS/logging infrastructures.
This project is still in very early stages, but will eventually implement everything that is in our [Java](https://github.com/ironcorelabs/tenant-security-client-java) and [Node](https://github.com/IronCoreLabs/tenant-security-client-nodejs/) SDKs.
## Getting started
A good place to start is the [TenantSecurityClient](https://ironcorelabs.github.io/tenant-security-client-php/classes/IronCore-TenantSecurityClient.html) class, which is what the consumer should always interact with. You can also go check out the [examples](https://github.com/IronCoreLabs/tenant-security-client-php/tree/main/examples).
If you're looking for more examples the usage is very similar to that shown in our [Java Examples](https://github.com/IronCoreLabs/tenant-security-client-java/tree/main/examples).
## Documentation
We generate documentation for this library using PHPDoc and publish it to https://ironcorelabs.github.io/tenant-security-client-php/.
## Design Choices
### Error handling
Functions which can error may throw [TenantSecurityException](https://ironcorelabs.github.io/tenant-security-client-php/classes/IronCore-Exception-TenantSecurityException.html) to indicate that they've failed.
### Http and Aes library choices
This library uses CURL for http requests and OpenSSL for AES encryption/decryption.
Copyright (c) 2021 IronCore Labs, Inc. All rights reserved.