PHPackages                             tim661811/laravel-telemetry-reporter - 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. tim661811/laravel-telemetry-reporter

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

tim661811/laravel-telemetry-reporter
====================================

A reusable Laravel 10+ package that lets you annotate any service method with a PHP attribute to collect custom telemetry (e.g. user counts, disk usage, feature flags) and automatically report it—at configurable intervals—to a central server over HTTP. Data is grouped per application host, is fully configurable via a published telemetry.php config (backed by your chosen cache), and integrates seamlessly with Laravel’s scheduler and HTTP client.

1.0(9mo ago)213[4 PRs](https://github.com/tim661811/laravel-telemetry-reporter/pulls)MITPHPPHP ^8.1CI passing

Since Jul 9Pushed 1mo agoCompare

[ Source](https://github.com/tim661811/laravel-telemetry-reporter)[ Packagist](https://packagist.org/packages/tim661811/laravel-telemetry-reporter)[ Docs](https://github.com/tim661811/laravel-telemetry-reporter)[ GitHub Sponsors](https://github.com/tim661811)[ RSS](/packages/tim661811-laravel-telemetry-reporter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (14)Versions (11)Used By (0)

Laravel telemetry reporter
==========================

[](#laravel-telemetry-reporter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/01dc03122fbb6e755991a6448b66aebe9020fc19e0faeff43c7c8b076a896cfc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74696d3636313831312f6c61726176656c2d74656c656d657472792d7265706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tim661811/laravel-telemetry-reporter)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b66e26c1dd9d3a7f2948ca7879f20ca914f5b19e759f59e814224c5131f68833/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f74696d3636313831312f6c61726176656c2d74656c656d657472792d7265706f727465722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/tim661811/laravel-telemetry-reporter/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a3805a51efa8e0b260540b0ef2adbfd5f554cceb327ced11e034b81bcbc7e8e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f74696d3636313831312f6c61726176656c2d74656c656d657472792d7265706f727465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/tim661811/laravel-telemetry-reporter/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5972d05478d85ab54c42f2cc9d310b0d5d2dca34854d4c267e27befbb3fa9380/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74696d3636313831312f6c61726176656c2d74656c656d657472792d7265706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tim661811/laravel-telemetry-reporter)

A reusable Laravel 10+ package that lets you annotate any service method with a PHP attribute to collect custom telemetry (e.g. user counts, disk usage, feature flags) and automatically report it—at configurable intervals—to a central server over HTTP. Data is grouped per application host, is fully configurable via a published telemetry.php config (backed by your chosen cache), and integrates seamlessly with Laravel’s scheduler and HTTP client.

Why use this?
-------------

[](#why-use-this)

If you're distributing Laravel apps across multiple installations — like SaaS clients, embedded setups, or on-premise deployments — it's hard to keep visibility into how those apps are behaving.

This package helps you:

- 🔍 **Collect custom metrics** (e.g. user count, storage usage, feature flags)
- 🔁 **Report at configurable intervals**
- 🔐 **Secure data with HMAC signing and bearer tokens**
- 🧠 **Handle remote instructions** (e.g. toggle features or maintenance mode)

Perfect for telemetry, license enforcement, usage analytics, or remotely managing feature flags — without requiring direct access to every app installation.

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

[](#installation)

You can install the package via composer:

```
composer require tim661811/laravel-telemetry-reporter
```

You can publish the config file with:

```
php artisan vendor:publish --tag="telemetry-reporter-config"
```

These are the contents of the published config file:

```
