keboola/storage-api-php-client-branch-wrapper

Wrapper for Storage API clients for Dev/Prod mode

Maintainers

Package info

github.com/keboola/storage-api-php-client-branch-wrapper

pkg:composer/keboola/storage-api-php-client-branch-wrapper

Transparency log

Statistics

Installs: 88 778

Dependents: 11

Suggesters: 0

Stars: 0

Open Issues: 0

7.1.0 2026-07-28 15:01 UTC

README

This is a wrapper for encapsulating Client and BranchAwareClient of Storage API PHP Client.

Installation

composer require keboola/storage-api-php-client-branch-wrapper

Usage

Create client instance and use it in wrapper instance:

$clientOptions = ClientOptions('http://xxx.com', '1234-XXXX', '123');
$clientWrapper = new ClientWrapper($clientOptions);
$branchClient = $clietnWrapper->getBranchClient();

Client options refer to the options of the Storage API Client constructor.

Development

Create a test Keboola Connection project and set TEST_STORAGE_API_URL and TEST_STORAGE_API_TOKEN environment variables. Use the .env.dist file to create .env file.

Run tests with:

docker-compose run --rm dev

License

MIT licensed, see LICENSE file.