keboola / storage-api-php-client-branch-wrapper
Wrapper for Storage API clients for Dev/Prod mode
Installs: 64 870
Dependents: 9
Suggesters: 0
Security: 0
Stars: 0
Watchers: 21
Forks: 0
Open Issues: 1
Requires
- php: >=8.2
- ext-json: *
- keboola/storage-api-client: ^15.3|^16.0|^17.0|^18.0
- symfony/http-foundation: ^5.2|^6.0|^7.0
- symfony/validator: ^5.2|^6.0|^7.0
Requires (Dev)
- infection/infection: ^0.27
- keboola/coding-standard: >=13.0
- phpstan/phpstan: ^1.5
- phpstan/phpstan-phpunit: ^1.1
- phpunit/phpunit: ^9.5
- symfony/dotenv: ^6.1
- dev-main
- 6.4.1
- 6.4.0
- 6.3.0
- 6.2.0
- 6.1.0
- 6.0.0
- 5.3.0
- 5.2.1
- 5.2.0
- 5.1.0
- 5.0.1
- 5.0.0
- 4.0.0
- 3.5.1
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.0.1
- 2.0.0
- 1.1.0
- 1.0.1
- 1.0.0
- 0.0.2
- 0.0.1
- dev-dev-adamvyborny-oauth-authorization-support
- dev-odin-KAB-1112
- dev-erik-PST-2110
- dev-KAB-179-CRUD-conversations-inner-workings
This package is auto-updated.
Last update: 2025-06-10 02:05:12 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.
Except for the runIdGenerator
option which defines a callback used to generate runId
when none is provided in
request (applicable for StorageClientRequestFactory
).
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.