spectra-php/laravel-spectra
| Install | |
|---|---|
composer require spectra-php/laravel-spectra |
|
| Latest Version: | v4.1.1 |
| PHP: | ^8.2 |
| Laravel: | 12 · 13 |
| Older releases: | 11 |
| License: | MIT |
| Last Updated: | Nov 13, 2026 |
| Links: | GitHub · Packagist |
AI observability like Langfuse and LangSmith, right inside your Laravel app.
Track every AI call, see what it costs, enforce budgets and test your prompts.
Official Documentation
Official documentation can be found on spectraphp.com.
Upgrading to 4.0
Spectra 4.0 adds scores, alerts, redaction, payload sampling, prompt versions, tool spans, error grouping, review queues, evaluations, a playground and a maintenance screen. Most apps only need to run php artisan spectra:install once. Check the guide if spectra:install runs in a deploy script, if others use your dashboard in production, if your code reads RequestContext::$id, or if you wrote a pricing class. See the upgrade guide and the changelog.
Code of Conduct
We expect all contributors to follow our Code of Conduct.
Security
If you find a security problem, please report it privately, as explained in our security policy. Please don't open a public issue.
Author
This library is created by Ahmad Mayahi with contributions from the Open Source Community.
License
The MIT License (MIT). Please see License File for more information.
Related Packages
AI task orchestrator for Laravel: routing, queue, audit, budget, webhooks
Laravel-native LLM observability with local traces, generations, cost tracking,...
Seamless integration of Langfuse observability for Laravel and Laravel Prism.
AI API cost monitoring and key management plugin for Filament v4 & v5
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v4.1.1 | ^8.2 | ^12.0|| | MIT | |
| v4.1.0 | ^8.2 | ^12.0|| | MIT | |
| v4.0.1 | ^8.2 | ^12.0|| | MIT | |
| v4.0.0 | ^8.2 | ^12.0|| | MIT | |
| v3.0.0 | ^8.2 | ^12.0|| | MIT | |
| v2.6.0 | ^8.2 | ^12.0|| | MIT | |
| v2.5.0 | ^8.2 | ^12.0|| | MIT | |
| v2.4.0 | ^8.2 | ^12.0|| | MIT | |
| v2.3.1 | ^8.2 | ^12.0|| | MIT | |
| v2.3.0 | ^8.2 | ^12.0|| | MIT | |
| v2.2.0 | ^8.2 | ^12.0|| | MIT | |
| v2.1.0 | ^8.2 | ^12.0|| | MIT | |
| v2.0.1 | ^8.2 | ^12.0|| | MIT | |
| v2.0.0 | ^8.2 | ^12.0|| | MIT | |
| v1.3.0 | ^8.2 | ^11.0|| | MIT | |
| v1.2.0 | ^8.2 | ^11.0|| | MIT | |
| v1.1.0 | ^8.2 | ^11.0|| | MIT | |
| v1.0.0 | ^8.2 | ^11.0|| | MIT |
