- How do I install keboola/service-client in a Laravel project?
- Install it with Composer using composer require keboola/service-client. The package is a PHP library, so Laravel can autoload it without a documented service provider. Check its composer.json for PHP and extension requirements before adding it to an existing app.
- Is keboola/service-client compatible with Laravel?
- It is a PHP client for the Keboola Service API rather than a Laravel-specific package. You can use it in Laravel through Composer and inject or resolve it in your own services. The provided context does not document a Laravel facade or service provider.
- What is keboola/service-client used for?
- It is used to build and send authenticated requests to the Keboola Service API. The lightweight wrapper handles common request concerns so PHP applications can integrate with Keboola more easily. Typical uses include automating Keboola operations and data-related workflows from your application.
- How does authentication work with keboola/service-client?
- The package is described as simplifying authenticated requests to Keboola services, so you will need valid Keboola API credentials. Store tokens in environment variables or Laravel config rather than hardcoding them. The exact token or header options are not shown in the provided README excerpt, so confirm them in the package docs.
- Do I need a Laravel service provider or config file for keboola/service-client?
- No Laravel service provider or config file is documented in the provided context. As a plain Composer package, it can be instantiated directly or bound into the Laravel container by your application. Add your own config values for credentials and endpoint settings if needed.
- Can I use keboola/service-client in Laravel queue jobs and commands?
- Yes, you can call the client from queued jobs, Artisan commands, or application services because it is a PHP library. Keep Keboola credentials in config or environment variables and handle timeouts, retries, and failures in your job logic. Test long-running API calls before relying on them in production queues.
- How should I test code that uses keboola/service-client?
- Wrap the client behind your own interface or adapter so unit tests can use a fake implementation. For integration tests, use a dedicated Keboola test project and token rather than production credentials. If the package exposes an HTTP client seam, use HTTP mocking; otherwise keep integration tests focused and controlled.
- Which Laravel versions support keboola/service-client?
- The provided context does not list Laravel version constraints, so compatibility depends on the package PHP requirement and your Laravel version. Check the package composer.json on Packagist and run Composer to detect conflicts. Because it is not a Laravel package, it is generally tied to PHP compatibility rather than a specific Laravel release.
- Is keboola/service-client safe to use in production?
- It can be used in production as a lightweight API client, but you must add proper timeouts, retries, logging, and secret management around it. Pin the Composer version and monitor Keboola API responses for failures. The package description marks it as READ-ONLY, so review its maintenance status and release history before depending on it.
- What are alternatives to keboola/service-client?
- You can call the Keboola Service API directly using Guzzle or Laravel's HTTP client for more control. Other alternatives may include official Keboola SDKs or existing integration tools, depending on what Keboola currently provides. Choose this package when you want a lightweight wrapper and direct HTTP when you need custom request handling.