PHPackages                             stryber/laravel-metrics - 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. stryber/laravel-metrics

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

stryber/laravel-metrics
=======================

Stryber Laravel metrics collector

025PHP

Since Mar 29Pushed 5y ago5 watchersCompare

[ Source](https://github.com/stryberventures/StryberPhpLaravelMetricsCollector)[ Packagist](https://packagist.org/packages/stryber/laravel-metrics)[ RSS](/packages/stryber-laravel-metrics/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Stryber Logo](https://camo.githubusercontent.com/ef84f69788a9b9a0197399eb665c7f39133f29721b6dab3faf945a442cf4b98d/68747470733a2f2f67386932623275382e726f636b657463646e2e6d652f77702d636f6e74656e742f75706c6f6164732f323031392f31322f537472796265722d77686974652d6c6f676f2d312e706e67)](https://camo.githubusercontent.com/ef84f69788a9b9a0197399eb665c7f39133f29721b6dab3faf945a442cf4b98d/68747470733a2f2f67386932623275382e726f636b657463646e2e6d652f77702d636f6e74656e742f75706c6f6164732f323031392f31322f537472796265722d77686974652d6c6f676f2d312e706e67)

Stryber Metrics Collector for Laravel
=====================================

[](#stryber-metrics-collector-for-laravel)

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Known Issues](#known-issues)

Requirements
------------

[](#requirements)

- PHP ^8.0
- Laravel ^8.0
- InfluxDB &gt;= 2.0

Installation
------------

[](#installation)

```
composer require stryber/laravel-metrics
```

Configuration
-------------

[](#configuration)

You can publish the config files with the following command:

```
php artisan vendor:publish --tag="stryber-mectrics"
```

Check [examples](examples) folder for:

- [env.example](examples/.env.example) env file with variables you should use to configure the package - copy them to your .env
- [docker-compose.yml](examples/docker-compose.yml) docker-compose file with influxdb service example
- [main\_dashboard.json](examples/main_dashboard.json) exported influxdb dashboard to import on new influxdb instance

Usage
-----

[](#usage)

For now package supports 1 driver - influxdb and collects 3 metrics - Command, Request and Query. Command and Query metrics will be collected automatically after you install the package. To make Request metrics work you have to enable middleware called `'collect-metrics'`.

Feel free to add your own metric classes to collect metrics in your project. For this you should extend `\Stryber\Metrics\Collectables\Metric` class and, if you're using influxdb, make transformer from `\Stryber\Metrics\Drivers\Influx\Transformers\MetricTransformer` or `\Stryber\Metrics\Drivers\Influx\Transformers\Transformer` based on your needs. If so, don't forget to add your transformer's resolver to config.

Known Issues
------------

[](#known-issues)

If you want to fill metric's storage with some data don't use laravel test setup. Based of current state of `stryber/laravel-uuid-helper` and laravel test request realization you will have all metrics with the same request-id.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47523539?v=4)[Naidenko Dmytro](/maintainers/M1crogravity)[@M1crogravity](https://github.com/M1crogravity)

### Embed Badge

![Health badge](/badges/stryber-laravel-metrics/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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