PHPackages                             keboola/vault-api-client - 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. keboola/vault-api-client

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

keboola/vault-api-client
========================

Keboola Vault API client

2.0.0(1w ago)06.4k↓67%1MITPHPPHP ^8.2CI failing

Since Jun 23Pushed 3d ago13 watchersCompare

[ Source](https://github.com/keboola/vault-api-php-client)[ Packagist](https://packagist.org/packages/keboola/vault-api-client)[ RSS](/packages/keboola-vault-api-client/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)Dependencies (23)Versions (36)Used By (1)

Vault API Client
================

[](#vault-api-client)

PHP client for the Keboola Vault API, built on top of `keboola/php-api-client-base`.

Installation
------------

[](#installation)

```
composer require keboola/vault-api-client
```

Usage
-----

[](#usage)

```
use Keboola\VaultApiClient\Variables\Model\ListOptions;
use Keboola\VaultApiClient\Variables\Model\Variable;
use Keboola\VaultApiClient\Variables\VariablesApiClient;

$client = new VariablesApiClient(
    baseUrl: 'https://vault.keboola.com',
    token: 'your-storage-api-token',
);

// Create a variable
$variable = $client->createVariable(
    key: 'MY_SECRET',
    value: 'secret-value',
    flags: [Variable::FLAG_ENCRYPTED],
    attributes: ['branchId' => '123'],
);

// List variables
$variables = $client->listVariables(new ListOptions(offset: 0, limit: 50));

// List scoped variables for a branch
$branchVariables = $client->listScopedVariablesForBranch(branchId: '123');

// Delete a variable
$client->deleteVariable(hash: $variable->hash);
```

### Custom configuration

[](#custom-configuration)

Pass retry, timeout, and logging options directly as constructor parameters:

```
use Monolog\Logger;

$client = new VariablesApiClient(
    baseUrl: 'https://vault.keboola.com',
    token: 'your-storage-api-token',
    backoffMaxTries: 3,
    logger: new Logger('vault'),
);
```

License
-------

[](#license)

MIT licensed, see [LICENSE](./LICENSE) file.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance99

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 84.2% 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

Every ~273 days

Total

5

Last Release

13d ago

Major Versions

0.1.1 → 1.0.02023-09-19

1.0.1 → 2.0.02026-06-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/101dbf2551a0709ddab522f97669f13a2c4cc2d0a1e8d009f3af6ba80accb1a9?d=identicon)[Keboola](/maintainers/Keboola)

---

Top Contributors

[![pepamartinec](https://avatars.githubusercontent.com/u/271753?v=4)](https://github.com/pepamartinec "pepamartinec (16 commits)")[![ErikZigo](https://avatars.githubusercontent.com/u/1726727?v=4)](https://github.com/ErikZigo "ErikZigo (2 commits)")[![ondrajodas](https://avatars.githubusercontent.com/u/12143866?v=4)](https://github.com/ondrajodas "ondrajodas (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/keboola-vault-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/keboola-vault-api-client/health.svg)](https://phpackages.com/packages/keboola-vault-api-client)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M112](/packages/google-cloud-core)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)

PHPackages © 2026

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