keboola/encryption-api-php-client

Keboola Encryption API Client

dev-main 2024-05-07 09:25 UTC

This package is auto-updated.

Last update: 2024-09-07 10:10:59 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.