keboola / service-client
Service Client provides easy way to get Keboola services URLs
Installs: 3 323
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
Requires (Dev)
- infection/infection: ^0.27.10
- keboola/coding-standard: ^15.0.1
- monolog/monolog: ^3.5.0
- phpstan/phpstan: ^1.10.59
- phpunit/phpunit: ^9.6.17
- sempro/phpunit-pretty-print: ^1.4
- symfony/dotenv: ^6.4.4
This package is auto-updated.
Last update: 2024-12-04 10:21:38 UTC
README
Service Client provides easy way to get Keboola services URLs. Usage:
use Keboola\ServiceClient\ServiceDnsType; use Keboola\ServiceClient\ServiceClient; // by default configured to return public URLs $serviceClient = new ServiceClient('eu-central-1.keboola.com'); $serviceClient->getStorageApiUrl(); // https://connection.eu-central-1.keboola.com $serviceClient->getEncryptionUrl(); // https://encryption.eu-central-1.keboola.com // explicitly request internal URL $serviceClient->getStorageApiUrl(ServiceDnsType::INTERNAL); // http://connection-api.connection.scv.cluster.local // can be configured to return internal URLs by default $serviceClient = new ServiceClient('eu-central-1.keboola.com', ServiceDnsType::INTERNAL); $serviceClient->getStorageApiUrl(); // http://connection-api.connection.scv.cluster.local
License
MIT licensed, see LICENSE file.