PHPackages                             intaro/pinba-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. intaro/pinba-bundle

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

intaro/pinba-bundle
===================

Collects and sends execution time of Doctrine queries, Twig renders and Redis requests as pinba timers to pinba server

2.7.0(3w ago)22925.4k↓17.6%17[2 issues](https://github.com/intaro/pinba-bundle/issues)[1 PRs](https://github.com/intaro/pinba-bundle/pulls)1MITPHPPHP &gt;=7.4CI failing

Since May 4Pushed 3w ago10 watchersCompare

[ Source](https://github.com/intaro/pinba-bundle)[ Packagist](https://packagist.org/packages/intaro/pinba-bundle)[ RSS](/packages/intaro-pinba-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (54)Versions (28)Used By (1)

PinbaBundle
===========

[](#pinbabundle)

[![CI](https://github.com/intaro/pinba-bundle/workflows/CI/badge.svg?branch=master)](https://github.com/intaro/pinba-bundle/workflows/CI/badge.svg?branch=master)

About
-----

[](#about)

PinbaBundle is Symfony bundle for [pinba](http://pinba.org).

```
Important! Include this bundle only in `prod` environment.

```

It collects and sends times of execution for Doctrine queries, Twig renders and Redis requests as pinba timers to pinba server. You can watch collected realtime metrics in [Intaro Pinboard](http://intaro.github.io/pinboard/). Example of output:

[![Pinba timers in Intaro Pinboard](https://camo.githubusercontent.com/47d9743127245ef75a6cbd28414a563dd0a2dd62c07bd0fb96935d5582222ac0/687474703a2f2f696e7461726f2e6769746875622e696f2f70696e626f6172642f696d672f74696d6572732e706e67)](https://camo.githubusercontent.com/47d9743127245ef75a6cbd28414a563dd0a2dd62c07bd0fb96935d5582222ac0/687474703a2f2f696e7461726f2e6769746875622e696f2f70696e626f6172642f696d672f74696d6572732e706e67)

Also PinbaBundle changes pinba `script_name` variable to `request_uri` value otherwise pinba sends `app.php` in `script_name` for the requests.

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

[](#installation)

PinbaBundle requires Symfony 4.4 or higher.

Require the bundle in your `composer.json` file:

```
{
    "require": {
        "intaro/pinba-bundle": "^2.0",
    }
}
```

**Important!** Register the bundle in `prod` environment:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        //...
    ];

    if ('prod' === $this->environment) {
        $bundles[] = new Intaro\PinbaBundle\IntaroPinbaBundle();
    }

    //...
}
```

Install the bundle:

```
$ composer update intaro/pinba-bundle

```

Usage
-----

[](#usage)

### Configure script\_name

[](#configure-script_name)

PinbaBundle automatically configures `script_name` variable of pinba.

### Collecting Twig metrics

[](#collecting-twig-metrics)

PinbaBundle automatically collects metrics for Twig renders.

### Collecting Doctrine metrics

[](#collecting-doctrine-metrics)

Edit `app/config/config_prod.yml` and add this lines:

```
doctrine:
    dbal:
        logging: true
```

Don't worry. This config enables pinba logger which collects only queries execution time but not logs them.

Development
-----------

[](#development)

### Run tests

[](#run-tests)

Install vendors:

```
make vendor
```

Run php-cs-fixer, phpstan and phpunit:

```
make check
```

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance93

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 69.8% of commits — single point of failure

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

Every ~176 days

Recently: every ~147 days

Total

26

Last Release

25d ago

Major Versions

0.4.4 → 1.0.02016-09-19

1.3.0 → 2.0.02022-07-05

PHP version history (2 changes)0.1PHP &gt;=5.3.0

2.0.0PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![muxx](https://avatars.githubusercontent.com/u/461614?v=4)](https://github.com/muxx "muxx (60 commits)")[![addfs](https://avatars.githubusercontent.com/u/184040?v=4)](https://github.com/addfs "addfs (16 commits)")[![1on](https://avatars.githubusercontent.com/u/2292168?v=4)](https://github.com/1on "1on (3 commits)")[![nadrshin](https://avatars.githubusercontent.com/u/5160164?v=4)](https://github.com/nadrshin "nadrshin (2 commits)")[![gwinn](https://avatars.githubusercontent.com/u/477726?v=4)](https://github.com/gwinn "gwinn (2 commits)")[![vkhramtsov](https://avatars.githubusercontent.com/u/5517373?v=4)](https://github.com/vkhramtsov "vkhramtsov (1 commits)")[![adapik](https://avatars.githubusercontent.com/u/10532067?v=4)](https://github.com/adapik "adapik (1 commits)")[![linniksa](https://avatars.githubusercontent.com/u/424343?v=4)](https://github.com/linniksa "linniksa (1 commits)")

---

Tags

bundlephppinbasymfonysymfony-bundlephpsymfonypinba

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/intaro-pinba-bundle/health.svg)

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

###  Alternatives

[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.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2839.2k10](/packages/inspector-apm-inspector-symfony)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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