Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Metrics Bundle

Metrics Bundle Laravel Package

flagbit/metrics-bundle

Flagbit MetricsBundle is a Symfony bundle for gathering and exposing application metrics. It offers a simple way to instrument services and publish measurements to your monitoring stack, helping teams track performance and business KPIs. Designed for easy setup in existing Symfony projects.

View on GitHub
Deep Wiki
Context7

Metrics Bundle for Symfony 2 Framework

Frequently asked questions about Metrics Bundle
What is flagbit/metrics-bundle?
It is a Symfony 2 bundle for gathering and exposing application metrics by instrumenting services and publishing measurements to a monitoring stack. It is not a Laravel package. It integrates through Symfony bundle registration, dependency-injection compiler passes, and service tagging conventions.
Can I use flagbit/metrics-bundle in Laravel?
No, not as-is. Laravel has no bundle concept and resolves services through a different container lifecycle, so Symfony compiler passes and event hooks do not carry over. You would need to fork and rewrite bootstrapping, wiring, and lifecycle hooks, at which point you have reimplemented the package.
How do I install flagbit/metrics-bundle?
In Symfony you would require it via Composer and register the bundle in AppKernel or bundles.php, but that process is Symfony-specific. For Laravel, do not install it as a dependency; use a Laravel-native service provider instead. Check composer.json first because its PHP and symfony constraints may be pinned to an old era.
Which Laravel and PHP versions does flagbit/metrics-bundle support?
It does not support Laravel at all. Its Composer constraints likely target Symfony 2 or 3-era PHP rather than modern PHP 8.x or 9.x runtimes. Verify composer.json before any evaluation, because the assessment expects compatibility friction at every layer.
Is flagbit/metrics-bundle maintained?
No, the repository is archived and has one star with zero dependents. That means no security patching, no issue triage, and no guarantees for current Symfony or PHP versions. The BSD-3-Clause license is permissive and fork-friendly, but that is its only operational asset.
What are Laravel alternatives to flagbit/metrics-bundle?
For Prometheus-style metrics, consider spatie/laravel-prometheus. For StatsD or general aggregation, wrap a modern StatsD client in a thin Laravel service provider. These options have active maintenance, current PHP support, and actual dependents.
How would I implement metrics collectors in Laravel?
Bind a MetricsRegistry in a service provider, tag collector implementations, resolve them with the container's tagged() support, and flush from terminable middleware so it runs after the response. This mirrors the bundle's idea without the Symfony dependency. It also preserves the collector contract and flush semantics you extract from the source.
Does flagbit/metrics-bundle have tests or production users?
The evaluation notes zero dependents and no field evidence that it ever worked in production. It also raises the question of whether tests ship, so inspect the repository before relying on it. With an archived one-star project, treat it as unproven.
What backend does flagbit/metrics-bundle send metrics to?
The context does not confirm a specific backend; it asks whether the collector interface is coupled to StatsD, Graphite, Prometheus, or InfluxDB. You must read the source to extract the collector contract and flush behavior. Do not assume a wire format or aggregation strategy.
Should I fork and port flagbit/metrics-bundle to Laravel?
Only if a spike reveals non-trivial logic, such as a specific wire format or aggregation strategy, that would be expensive to reproduce. Otherwise, reimplementing the few dozen lines of container wiring is cheaper and clearer. Forking also means accepting permanent ownership and maintenance.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core