spectra-php/laravel-spectra

Comprehensive observability for AI/LLM operations in Laravel applications
4,151 20
Install
composer require spectra-php/laravel-spectra
Latest Version:v1.3.0
PHP:^8.2
License:MIT
Last Updated:Jul 4, 2026
Links: GitHub  ·  Packagist
Maintainer: ahmad.mayahi

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.

Related Packages

alidaaer/laravel-ai-agent

Give your Laravel app a brain, safely. Build AI Agents that can execute real act...

1,658 30
fomvasss/laravel-ai-tasks

AI task orchestrator for Laravel: routing, queue, audit, budget, webhooks

3,959 40
israrminhas/filament-aimonitor

AI API cost monitoring and key management plugin for Filament

2,590 10