Download the PHP package rylxes/laravel-observability without Composer

On this page you can find all versions of the php package rylxes/laravel-observability. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-observability

Laravel Observability Plugin

Full Documentation โ€” Complete usage guide, configuration reference, and API docs.

๐Ÿ” Production-Grade Observability & APM for Laravel Applications

A lightweight, database-agnostic alternative to full APM tools, optimized specifically for Laravel apps. Features request tracing, performance profiling, slow query detection, OpenTelemetry/Prometheus integration, AI-based anomaly detection, and smart alerting.

Latest Version PHP Version Laravel Version


โœจ Features

Core Capabilities


๐Ÿ“ฆ Installation

1. Install via Composer

2. Run Installation Command

This will:

3. Register Middleware

Add to app/Http/Kernel.php (Laravel 10) or bootstrap/app.php (Laravel 11):

Laravel 10:

Laravel 11:

4. Configure Environment

Add to .env:


๐Ÿš€ Usage

Using the Facade

Artisan Commands

Analyze Performance:

Prune Old Data:

Web Dashboard (Authenticated)

By default, the package includes a web dashboard at:

It uses your app's configured auth guards (observability.dashboard.guards), so it works with your existing login/session setup while still exposing the API for internal tools.

API Endpoints

All endpoints are prefixed with /api/observability:

Endpoint Description
GET /metrics Prometheus metrics (text format)
GET /dashboard Performance dashboard data (JSON, supports ?days=1..30)
GET /traces Recent request traces
GET /traces/{traceId} Single trace detail
GET /alerts Recent alerts
POST /alerts/{id}/resolve Resolve an alert
GET /health Health check

Example:


โš™๏ธ Configuration

Database Connection

By default, uses your app's default database connection. To use a separate database:

Then configure the connection in config/database.php.

Request Tracing

Slow Query Detection

Anomaly Detection (AI)

Notifications

Data Retention

Dashboard UI


๐Ÿ“Š Integrations

Prometheus

Enable in .env:

Configure Prometheus to scrape:

OpenTelemetry

Grafana Dashboard

Import the included Grafana dashboard template:


๐Ÿค– AI Anomaly Detection

The plugin uses statistical analysis (Z-score method) to detect anomalies:

  1. Baseline Calculation: Analyzes last 7 days (configurable)
  2. Statistical Analysis: Calculates mean and standard deviation
  3. Anomaly Detection: Flags values > 3ฯƒ from baseline
  4. Auto-Alerting: Creates alerts for critical anomalies

Monitored Metrics:

Example:


๐Ÿ“ˆ Performance Insights

Dashboard Data Structure


๐Ÿ”’ Security Considerations


๐Ÿงช Testing

Run tests:

Local Development Loop (Deploy Once)

This lets you test package changes locally through /admin/observability, then ship one release after validation.

With coverage:


๐Ÿ“Š Database Schema

The plugin creates 4 tables (with configurable prefix):

Table Purpose
observability_traces HTTP request traces
observability_queries Database query logs
observability_metrics Aggregated performance metrics
observability_alerts Generated alerts

All tables use your app's database connection (MySQL, PostgreSQL, SQLite, SQL Server).


๐Ÿค Contributing

Contributions welcome! Please see CONTRIBUTING.md for details.


๐Ÿ“ License

MIT License. See LICENSE file.


๐Ÿ™ Credits

Built with โค๏ธ for the Laravel community by Sherriff Agboola.


๐Ÿ“ž Support


โญ If you find this useful, please star the repository!


All versions of laravel-observability with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
open-telemetry/opentelemetry Version ^1.0
php-http/httplug Version ^2.4
promphp/prometheus_client_php Version ^2.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rylxes/laravel-observability contains the following files

Loading the files please wait ...