PHPackages                             spectra-php/laravel-spectra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. spectra-php/laravel-spectra

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

spectra-php/laravel-spectra
===========================

Comprehensive observability for AI/LLM operations in Laravel applications

v1.2.0(5d ago)182.8k↑1621.4%[2 PRs](https://github.com/spectra-php/laravel-spectra/pulls)MITPHPPHP ^8.2CI passing

Since Mar 22Pushed 4w agoCompare

[ Source](https://github.com/spectra-php/laravel-spectra)[ Packagist](https://packagist.org/packages/spectra-php/laravel-spectra)[ Docs](https://github.com/spectra-php/laravel-spectra)[ GitHub Sponsors](https://github.com/ahmadmayahi)[ RSS](/packages/spectra-php-laravel-spectra/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (32)Versions (9)Used By (0)

 [![Spectra](art/logo.svg)](art/logo.svg)

[![Build Status](https://github.com/spectra-php/laravel-spectra/workflows/tests/badge.svg)](https://github.com/spectra-php/laravel-spectra/actions)[![Spectra Stable Version](https://camo.githubusercontent.com/42048a6c5746ae5fd05525ce308f569d5db261958af3a78b4d2d3dc89f5fab5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737065637472612d7068702f6c61726176656c2d73706563747261)](https://packagist.org/packages/spectra-php/laravel-spectra)[![License](https://camo.githubusercontent.com/dcb0df25ce16705f4ed10417a59c1c990347a75ea32c4f672771587c04dabcf7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f737065637472612d7068702f6c61726176656c2d73706563747261)](https://packagist.org/packages/spectra-php/laravel-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)

Official documentation can be found on [spectraphp.com](https://spectraphp.com).

Code of Conduct
---------------

[](#code-of-conduct)

While this project is not affiliated with Laravel, we follow the Laravel [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). We expect all contributors to follow these guidelines.

Author
------

[](#author)

This library is created by [Ahmad Mayahi](https://mayahi.net) with contributions from the [Open Source Community](https://github.com/spectra-php/laravel-spectra/graphs/contributors).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

50

↑

FairBetter than 95% of packages

Maintenance97

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Total

5

Last Release

5d ago

Major Versions

v0.2.0 → v1.0.02026-06-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/fdd47a6fbc9b1cf5c5fb2f85520e535b73c29ce99b5c2ac640ddac3fc9a3e987?d=identicon)[ahmad.mayahi](/maintainers/ahmad.mayahi)

---

Top Contributors

[![ahmadmayahi](https://avatars.githubusercontent.com/u/1689910?v=4)](https://github.com/ahmadmayahi "ahmadmayahi (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

ailaravelobservabilitylaravelaiopenaiGeminiobservabilityllmanthropicahmadmayahi

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/spectra-php-laravel-spectra/health.svg)

```
[![Health](https://phpackages.com/badges/spectra-php-laravel-spectra/health.svg)](https://phpackages.com/packages/spectra-php-laravel-spectra)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
