mohemian/flink-sdk-php
A PHP SDK for integrating Flink into Laravel or any PHP application, providing a lightweight client and helpers for API requests, authentication, and response handling so you can add Flink functionality with clean, reusable code.
composer require mohemian/flink-sdk-php:0.1.0 and pin the exact version — this is the first tagged release, so treat the public API as unstable.composer.json → extra.laravel.providers). If so, expect a publishable config: php artisan vendor:publish --tag=flink-config. If not, you will likely construct the client manually or bind it yourself.FLINK_BASE_URL, FLINK_API_KEY/client credentials, and a signing/secret value used for prefill verification. Confirm the exact names in the config file or constructor signature.FlinkClient interface in a service provider and implement it with a thin wrapper around the SDK. This package is at 0.1.x; you want one file to change when the API shifts, not every controller.$request->getContent() (or the raw body captured by middleware) and hand that to the SDK before any casting, validation, or JSON re-encoding. Only after verification succeeds should you hydrate a DTO.VerifySignedPrefill action → domain event (IdAustriaPrefillVerified) → listener persists profile data. Keep the controller to a few lines.Http::fake() if it is built on the Laravel HTTP client; otherwise register a Guzzle MockHandler. Keep at least one contract test using a real captured payload so a dependency bump cannot silently break signature verification."mohemian/flink-sdk-php": "0.1.0" and read the changelog before every bump. The release only covers prefill verification plus packaging, so broader client surface is not yet proven.TrimStrings/ConvertEmptyStringsToNull middleware, or a proxy that rewrites the body will invalidate signatures. Verify in middleware or read the raw content early, and exclude the callback route from body-mutating middleware if needed.PrefillVerificationFailed, FlinkUnavailable) so callers and monitoring stay meaningful.Flink facade or config publishing, resolve the client through the container yourself; do not reach for app() inside domain code.Http::globalMiddleware() or a Guzzle middleware to observe outgoing requests without touching vendor code.How can I help you explore Laravel packages today?