PHPackages                             a5sys/monitor-bundle - 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. a5sys/monitor-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

a5sys/monitor-bundle
====================

V1.0.0(9y ago)2675MITPHP &gt;=5.4.0

Since Dec 19Compare

[ Source](https://github.com/A5sys/MonitorBundle)[ Packagist](https://packagist.org/packages/a5sys/monitor-bundle)[ RSS](/packages/a5sys-monitor-bundle/feed)WikiDiscussions Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Monitor Bundle
==============

[](#monitor-bundle)

This bundle gives some statistics about the application usage.

You can easily know, day per day:

- how many requests did not end
- the slow requests
- the requests that kills you app performance

Installation
============

[](#installation)

Download
--------

[](#download)

Download the bundle using composer:

```
composer require 'a5sys/monitor-bundle'

```

Enable bundle
-------------

[](#enable-bundle)

Enable the bundle in your /app/AppKernel.php:

```
new A5sys\MonitorBundle\MonitorBundle(),

```

Note that you also need to enable the jms-translation bundle:

```
new JMS\TranslationBundle\JMSTranslationBundle(),

```

Add channel
-----------

[](#add-channel)

Configure the logger:

```
monolog:
    channels: ['monitor']
    handlers:
        monitor:
    	    type:  rotating_file
            max_files: 60
    	    path:  "%kernel.logs_dir%/monitor.log"
            channels: ['monitor']
    	    formatter: monitor.monolog.formatter

```

Do not forget to remove the channel monitor from your main log if you do not want to spam it.

Example:

```
monolog:
    handlers:
        main:
            type: rotating_file
            max_files: 60
            path:   "%kernel.logs_dir%/%kernel.environment%.log"
            level:  debug
            channels: [!'monitor']

```

Routing
-------

[](#routing)

Set up routing, in your app/config/routing.yml

```
monitor_controller:
    resource: "@MonitorBundle/Controller/"
    type:     annotation
    prefix:   /monitor

```

Security
--------

[](#security)

Set up security, in your app/config/security.yml

```
security:
    access_control:
        - { path: ^/monitor/, roles: ROLE_SUPER_ADMIN }

```

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

[](#configuration)

These are the available configurations with their default value:

```
monitor:
    enable: true #enable or disable the logs
        slow_threshold:
        	warning: 1000 #the requests that needs more than X ms is a slow one
        	error: 3000 #the requests that needs more than X ms is an error, it takes too much time
types:
	start: true #is the start time for the request log required
	stop: true #is the stop time for the request log required
	duration: true #is the duration for the request log required
	memory: true #is the memory for the request log required
	url: true #is the url for the request log required
	user: true #is the user for the request log required

```

Usage
=====

[](#usage)

The monitor logs are in your app/logs folder.

The statistics can be viewed at the url (depending of your configuration)

```
http://yourapp/monitor

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3480d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c429f46d826a96644aa39a86ad00a6834bfa6b9190b7a62b8c42c53baf66b4b1?d=identicon)[jonag](/maintainers/jonag)

![](https://www.gravatar.com/avatar/3a644d41501105bc7aded710d1682ac2a3abdceaf9c02e97d1cb1d6e2607c9d9?d=identicon)[ttx-a5](/maintainers/ttx-a5)

### Embed Badge

![Health badge](/badges/a5sys-monitor-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/a5sys-monitor-bundle/health.svg)](https://phpackages.com/packages/a5sys-monitor-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2836.4k9](/packages/inspector-apm-inspector-symfony)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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