renatomarinho/laravel-page-speed
ApiPerformanceHeaders for tracking response times, payload sizes) and health checks, directly supporting SLO/SLI-based roadmaps (e.g., "Reduce API response time by 30% in 6 months"). The new formatsBytes trait standardizes unit conversion (now including TB), simplifying reporting for large-scale payloads (critical for file-heavy APIs or microservices).formatBytes() into a reusable trait reduces technical debt and aligns with DRY principles, easing future updates (e.g., adding new units like PB). This supports platform-wide consistency for metrics formatting.@deprecated flag on removeSingleLineCommentFromLine() signals a phased migration path for developers using legacy code, reducing breaking-change risks during upgrades.ApiHealthCheck middleware (now cleaner with removed dead code) enables proactive monitoring, aligning with reliability-focused roadmaps (e.g., "Improve MTTR for API failures").formatsBytes trait) to avoid reinventing wheels for common tasks like unit conversion or comment stripping.ApiPerformanceHeaders, ApiHealthCheck) provide lightweight, self-hosted solutions.formatBytes() now supports TB units.InlineCss (documented in v4.4.4).league/glide for images) and don’t need API-level compression."This Laravel package lets us monitor and optimize API performance in-house—without third-party vendor lock-in. Key benefits:
formatsBytes) saves dev time on repetitive tasks, accelerating feature delivery.
Example use case: If our [Product X] API hits 10K RPS, this package helps us debug bottlenecks and compress responses to improve user experience. Minimal setup; zero operational overhead.""This is a low-risk, high-reward upgrade for our Laravel APIs:
formatsBytes trait standardizes unit conversion (B→TB) across middlewares—no more copy-pasted logic.Queue, Symfony Response imports) and deprecated legacy methods (removeSingleLineCommentFromLine) to reduce technical debt.ApiResponseCompression and ApiHealthCheck are batteries-included for observability.Action Items:
ApiPerformanceHeaders/ApiHealthCheck integration; update any custom formatBytes() implementations to use the new trait.How can I help you explore Laravel packages today?