PHPackages                             keboola/encryption-api-php-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/encryption-api-php-client

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

keboola/encryption-api-php-client
=================================

Keboola Encryption API Client

1.0.0(1mo ago)0817↓75%MITPHPPHP ^8.2CI failing

Since Apr 25Pushed 1y ago13 watchersCompare

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

READMEChangelog (7)Dependencies (16)Versions (10)Used By (0)

Encryption API Client
=====================

[](#encryption-api-client)

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

[](#installation)

```
composer require keboola/encryption-api-php-client
```

Development
-----------

[](#development)

Run the tests:

```
docker compose run dev composer install
docker compose run dev
```

Usage
-----

[](#usage)

Both clients build on [`keboola/php-api-client-base`](https://github.com/keboola/php-api-client-base). The constructor takes the API base URL and the auth token first, followed by optional, named transport options (`logger`, `backoffMaxTries`, `connectTimeout`, `requestTimeout`, `userAgent`, `requestHandler`).

### Encryption

[](#encryption)

```
use Keboola\EncryptionApiClient\Encryption;

$encryption = new Encryption(
    'https://encryption.keboola.com',
    getenv('STORAGE_API_TOKEN'),
);

$cipher = $encryption->encryptPlainTextForConfiguration(
    'my secret value',
    'project-id',
    'keboola.data-apps',
    '123456',
);
```

### Migrations

[](#migrations)

```
use Keboola\EncryptionApiClient\Migrations;

$migrations = new Migrations(
    'https://encryption.keboola.com',
    getenv('MANAGE_API_TOKEN'),
);

$result = $migrations->migrateConfiguration(
    sourceStorageApiToken: '...',
    destinationStack: 'connection.europe-west3.gcp.keboola.com',
    destinationStorageApiToken: '...',
    componentId: 'keboola.data-apps',
    configId: '123456',
    branchId: '102',
    dryRun: true,
);
```

The manage token is optional. When it is omitted (or `null`), `Migrations` authenticates with the projected Connection service-account token instead — useful for in-cluster service-to-service calls:

```
$migrations = new Migrations('https://encryption.keboola.com'); // service-account auth
```

On a failed request both clients throw `Keboola\EncryptionApiClient\Exception\ClientException`(a subclass of `Keboola\ApiClientBase\Exception\ClientException`). The exception exposes `getStatusCode()` and `getResponseBody()` for the failing response, when available.

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance64

Regular maintenance activity

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 86% 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 ~130 days

Recently: every ~195 days

Total

7

Last Release

49d ago

Major Versions

0.2.2 → 1.0.02026-06-19

PHP version history (3 changes)0.1.0PHP &gt;=8.2

0.1.2PHP ^7.4 || ^8.2

1.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![romantmb](https://avatars.githubusercontent.com/u/228957?v=4)](https://github.com/romantmb "romantmb (37 commits)")[![ErikZigo](https://avatars.githubusercontent.com/u/1726727?v=4)](https://github.com/ErikZigo "ErikZigo (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.1k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M766](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k19](/packages/tempest-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

758297.9k49](/packages/civicrm-civicrm-core)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.7M7](/packages/avalara-avataxclient)

PHPackages © 2026

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