aksoom-hussain/kaveh
Kaveh is a Laravel/PHP package by aksoom-hussain that provides reusable, framework-friendly utilities for common application tasks. Install it via Composer, configure it for your project, and use its simple API to streamline development. Lightweight and easy to adopt.
Consider it when:
EventBuffer, which is where most naive buffers corrupt state or stall the event loop.illuminate/foundation requirement also suggests the maintainer is actively trimming install friction.Look elsewhere when:
EventBuffer implies loss on trip and on process exit.To executives: This is a small, low-cost dependency that handles a problem every product with telemetry eventually pays for — what happens when the analytics/logging endpoint goes down. The new release adds automatic fail-fast (stops calling a broken endpoint for 60 seconds after 3 failures) and hard timeouts so a slow third party can never stall our application. Net effect: we avoid building and maintaining that resilience logic ourselves, and we remove a concrete risk of user-facing slowdowns caused by a downstream outage. Risk to flag: the package is pre-1.0 (v0.2.5), so we pin the version and treat upgrades as reviewed changes, not automatic.
To engineering: v0.2.5 makes this safe to run in the request path or in Octane workers. Specifically: RemoteTransport now trips a circuit breaker after 3 consecutive failures with a 60s cooldown; connect and request timeouts are capped at 1.0s and 3.0s so a hung endpoint cannot exhaust PHP-FPM workers; and EventBuffer has an Octane-safe non-blocking fallback. A bogus illuminate/foundation composer requirement was also dropped, cleaning up install/conflict behavior. Two things to verify before adoption: (1) what the buffer does with events accumulated during a breaker cooldown — drop or retain; (2) whether breaker threshold, cooldown, and timeouts are configurable per environment, since a 3-second ceiling is generous for inline use and stingy for batch backfills. Recommendation: adopt behind a feature flag in one non-critical event stream first, instrument breaker-trip counts as a metric, and revisit at 1.0.
How can I help you explore Laravel packages today?