PHP code example of keboola / encryption-api-php-client
1. Go to this page and download the library: Download keboola/encryption-api-php-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
keboola / encryption-api-php-client example snippets
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,
);