mirafive/sdk-laravel
A Laravel SDK package that wraps Mirafive services in Laravel-native conventions, providing a service provider, facade, and publishable configuration so you can integrate Mirafive features into your app with minimal setup and fluent, expressive calls.
Mira facade, publishable config, Blade directives, queue hand-off, cache-backed flag document, and Octane lifecycle hooks align with standard Laravel application architecture. The package is a thin Laravel integration over mirafive/sdk-php 1.0, so it should reduce bespoke integration work for teams standardizing telemetry and feature flags.composer require, config publish, environment variables, optional Blade directives, optional queue configuration, and an artisan install check. The main effort is product/legal/analytics work: consent strategy, event taxonomy, flag ownership, data residency, and opt-out enforcement via Mira::optedOut() / Mira::forUser().v1.0.0) carries maturity risk. Key areas to validate: queued batch encoding and byte-for-byte delivery with worker-held keys, Octane warm/flush behavior, cache consistency for shared flag documents, disabled-mode behavior, CSP nonce handling in Blade, and whether send() synchronous calls can affect request latency. The fake API is valuable for reducing test risk, but it must match production semantics.SendBatch? What is the flag cache TTL/invalidation model? How are secret keys rotated for web and worker processes? How is consent enforced across server events and tracker tags? What are data residency/PII handling guarantees? What is vendor support/SLA and versioning policy? Has Octane/Horizon behavior been independently verified?SendBatch and shared flag caching. Vite CSP nonce support is helpful for stricter frontend security policies.enabled=false or no secret key) to validate wiring without sending data. Publish config, run php artisan mirafive:check, then introduce tracking and flags incrementally. Teams migrating from direct mirafive/sdk-php or custom analytics should map existing events, identity, opt-out, and flag semantics before switching.Cache-Control: private, no-store meet CDN/proxy expectations.@mirafiveScript and @mirafiveFlags behind consent rules; 5) instrument server events with forUser/optedOut; 6) enable queued delivery in staging; 7) add Mira::fake() assertions to critical tests; 8) canary to a small traffic slice; 9) expand rollout with monitoring.mirafive/sdk-laravel and mirafive/sdk-php releases, config drift, secret rotation, cache/queue dependencies, and Octane lifecycle changes. Treat config as code and document environment variables.send() should be reserved for cases where latency impact is acceptable.How can I help you explore Laravel packages today?