Skip to content

keboola/encryption-api-php-client

Repository files navigation

Encryption API Client

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.