Download the PHP package cardinal/laravel without Composer
On this page you can find all versions of the php package cardinal/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cardinal/laravel
More information about cardinal/laravel
Files in cardinal/laravel
Package laravel
Short Description Production query health for Laravel — continuous SQL monitoring, deploy regression tracking, AI-powered fix recipes.
License MIT
Homepage https://cardinal.dev
Informations about the package laravel
Cardinal
Production query health monitoring for Laravel. Catch slow queries, N+1 bugs, and missing indexes — with AI-powered fix suggestions and ready-to-run migrations.
Features
- Slow Query Detection — track queries exceeding your threshold (default 500ms)
- N+1 Detection — spot repeated query patterns within a single request
- Missing Index Detection — identify unindexed columns in slow queries
- AI-Powered Analysis — diagnosis and migration code via Claude or OpenAI (optional, BYO key)
- Zero Production Overhead — configurable sampling, ignore lists, buffered processing
- Privacy First — only normalized SQL templates leave your server, never values
Installation
Publish config (optional):
Configuration
Usage
Report all issues
AI analysis of a specific query
Requires CARDINAL_AI_KEY in .env. Returns diagnosis, root cause, suggested migration and Eloquent pattern.
Generate and apply a fix
Generates a migration file. You review and run it yourself — Cardinal never auto-applies migrations.
Signal a deploy (Cloud, Phase 3)
How It Works
Fingerprinting
Every SQL query is normalized into a template — all literals replaced with ?, IN lists collapsed:
Identical templates across requests share one fingerprint, enabling accurate aggregation and N+1 detection.
Privacy guarantee
The Fingerprinter strips all literals before any data is persisted or transmitted. A CI test asserts this invariant — it fails if any raw number or string value leaks into a template.
Detectors
| Detector | Trigger |
|---|---|
SlowQueryDetector |
max_ms >= slow_threshold_ms |
NPlusOneDetector |
same fingerprint repeats >= n_plus_one_threshold times per request |
MissingIndexDetector |
slow query WHERE/JOIN columns not covered by any index |
Requirements
- PHP 8.2+
- Laravel 10, 11, or 12
- MySQL 5.7+ or PostgreSQL 12+ or SQLite (testing)
Testing
Roadmap
- [x] v0.1 — Slow / N+1 / missing index detection, AI fix suggestions, migration generator
- [ ] v0.2 — Cloud transport (batched metrics ingestion)
- [ ] Cloud — Deploy-linked regression detection, Filament dashboard, Stripe billing
License
MIT
All versions of laravel with dependencies
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0