spectra-php / laravel-spectra
Comprehensive observability for AI/LLM operations in Laravel applications
Fund package maintenance!
ahmadmayahi
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/spectra-php/laravel-spectra
Requires
- php: ^8.2
- illuminate/contracts: ^11.0||^12.0
- illuminate/database: ^11.0||^12.0
- illuminate/support: ^11.0||^12.0
- symfony/polyfill-php84: ^1.31
Requires (Dev)
- james-heinrich/getid3: 2.0.x-dev
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1
- openai-php/laravel: *
- orchestra/testbench: ^9.0||^10.0
- pestphp/pest: ^3.0||^4.0
- pestphp/pest-plugin-arch: ^3.0||^4.0
- pestphp/pest-plugin-laravel: ^3.0||^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
Suggests
- james-heinrich/getid3: Required for extracting audio duration from TTS binary responses (minute-based cost calculation)
This package is auto-updated.
Last update: 2026-02-15 11:06:48 UTC
README
Spectra
Spectra is a comprehensive Laravel package for AI observability. It helps you track AI requests, measure usage, calculate costs across different pricing units, enforce budgets, and inspect AI operations through a unified dashboard and API. This lets you focus on shipping reliable AI features without getting buried in provider-specific operational complexity.
Official Documentation
Official documentation can be found on spectraphp.com.
Code of Conduct
While this project is not affiliated with Laravel, we follow the Laravel Code of Conduct. We expect all contributors to follow these guidelines.
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.