- How do I install laravel-kchat-sdk in a Laravel app?
- Install it with Composer using composer require backtik-ch/laravel-kchat-sdk. The package is expected to use Laravel package auto-discovery for its service provider and facade, so manual registration should not be necessary. After installation, publish the configuration file with the vendor:publish command and add your KChat credentials. Because the current release is v0.1.1, check the composer.json constraints and pin the exact version before using it in a real project.
- Which Laravel and PHP versions does this package support?
- The package overview does not publish a supported Laravel and PHP version matrix, so treat it as unverified until you read the require section of its composer.json. The current tag is v0.1.1, a pre-1.0 release, which usually means constraints may change between minor versions. Run a composer require in a scratch app on your exact Laravel and PHP versions to confirm there are no dependency conflicts.
- How do I configure KChat API credentials and the base URL?
- Configuration is described as publishable and config-driven, covering credentials, base URL, and client options. The typical workflow is to publish the config file and supply secrets through environment variables rather than committing them. Keep KChat tokens out of version control and confirm how the package logs requests before enabling it in customer-facing paths, since chat SDKs can touch message content and credentials.
- How do I send a KChat message using the facade?
- Yes, the package exposes a facade intended to make sending messages and managing conversations straightforward without writing HTTP boilerplate. The exact method names and payload shapes are not shown in the overview, so read the facade source or README examples before coding against it. For safety, call the facade behind your own gateway interface rather than scattering calls across the codebase.
- Can I send KChat messages through Laravel notifications and queues?
- The overview lists Laravel notifications and queue-friendly integration as features, which suggests you can deliver KChat messages through a notification channel and push sending onto a queue. Verify the actual notification channel class and job behavior in the source, and confirm retry and failure semantics before relying on it for time-sensitive messages. Queued delivery is a good fit for internal alerts during a pilot.
- Does laravel-kchat-sdk support webhooks or receiving inbound messages?
- Receiving messages is less clear: the overview emphasizes sending messages and managing conversations, and does not confirm webhook ingestion or signature verification. If your use case requires inbound messages, inspect the source for webhook routes, controllers, or events. Absent that, plan to implement inbound handling yourself and pass payloads into your own service layer.
- How does the package handle API errors and responses?
- The package advertises consistent error handling with typed responses, which is a good sign for a wrapper, but typed response classes alone do not tell you whether HTTP failures, rate limits, and API error payloads are normalized. Read the client code and test a failed request to see what exceptions or result objects you get. If raw responses leak through, wrap them so your application does not depend on KChat-specific shapes.
- Is laravel-kchat-sdk stable enough for production use?
- Treat it as pre-production: v0.1.1 is the second published tag, there is no written changelog for the patch release, and there is no evidence of downstream adoption or a support policy. For a customer-facing path, isolate it behind your own interface and a feature flag, starting with internal notifications or ops alerts. Only promote it after reading the v0.1.0 to v0.1.1 diff and exercising send and receive paths.
- Does the package have tests, CI, and a clear license?
- The overview does not state whether a test suite, CI pipeline, or coverage report exists, and the license should be confirmed from the repository composer.json and LICENSE file. Check the GitHub repository for workflows, tests, and a SECURITY policy. These signals matter more than usual for a single-organization package that handles message content and API credentials.
- What are the alternatives to laravel-kchat-sdk and how should I integrate it safely?
- Alternatives include calling the KChat HTTP API directly with Laravel's HTTP client or Guzzle, or using an official KChat SDK if one exists, while keeping your own ChatGateway abstraction in front. The lowest-commitment approach is a spike branch that installs this package, exercises one send, and wraps it in your own interface so a future swap is a one-class change. Pin the exact version and avoid spreading facade calls through domain code.