PHPackages                             keyraft/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. keyraft/php-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

keyraft/php-sdk
===============

Professional PHP SDK for Keyraft - A lightweight, self-hosted configuration and secrets management system

v0.1.0(1mo ago)111Apache-2.0PHPPHP ^8.2CI passing

Since Jul 8Pushed 1mo agoCompare

[ Source](https://github.com/keyraft/php-sdk)[ Packagist](https://packagist.org/packages/keyraft/php-sdk)[ RSS](/packages/keyraft-php-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Keyraft PHP SDK
===============

[](#keyraft-php-sdk)

PHP client for [Keyraft](https://github.com/keyraft/keyrafted) — compatible with server **v0.3.0**.

Requirements
------------

[](#requirements)

- PHP 8.2+
- ext-curl, ext-json

Install
-------

[](#install)

```
composer require keyraft/php-sdk
```

Quick start
-----------

[](#quick-start)

```
use Keyraft\SDK\Client;

$client = new Client('http://localhost:7200', getenv('KEYRAFT_TOKEN'));

$client->set('myapp/prod', 'DATABASE_URL', 'postgres://...', 'secret');
$entry = $client->get('myapp/prod', 'DATABASE_URL');
```

API coverage
------------

[](#api-coverage)

AreaMethodsHealth`health()`, `metrics()`KV`set()`, `get()`, `delete()`, `list()`, `listVersions()`Watch`watch()` (long-poll), `watchStream()` (SSE)Namespaces`listNamespaces()`, `getNamespace()`, `deleteNamespace()`Auth`me()`, `createToken()`, `listTokens()`, `revokeToken()`Roles`listRoles()`, `getRole()`Audit`audit($namespace, $limit, $offset)`See `examples/` for more usage.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance92

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

41d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/152050438?v=4)[xentixar](/maintainers/xentixar)[@xentixar](https://github.com/xentixar)

---

Top Contributors

[![xentixar](https://avatars.githubusercontent.com/u/152050438?v=4)](https://github.com/xentixar "xentixar (4 commits)")

---

Tags

config-managementconfigurationkey-valuekeyraftphpsdksecretssdkconfigurationKey valuesecretsconfig-managementkeyraft

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/keyraft-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/keyraft-php-sdk/health.svg)](https://phpackages.com/packages/keyraft-php-sdk)
```

###  Alternatives

[aws/aws-crt-php

AWS Common Runtime for PHP

424340.7M11](/packages/aws-aws-crt-php)[caseyamcl/configula

A simple, but versatile, PHP config loader

42150.9k6](/packages/caseyamcl-configula)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
