keboola/encryption-api-php-client

Keboola Encryption API Client

0.2.1 2024-05-02 14:13 UTC

This package is auto-updated.

Last update: 2024-05-02 14:18:38 UTC


README

Installation

composer require keboola/encryption-api-php-client

Development

Run the tests:

docker compose run dev composer install
docker compose run dev

Usage

use Keboola\EncryptionApiClient\Migrations;

$migrations = new Migrations(getenv('STORAGE_API_TOKEN'));

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

License

MIT licensed, see LICENSE file.