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.6.2(1y ago)22823.7k↑14.3%15[1 PRs](https://github.com/intaro/pinba-bundle/pulls)1MITPHPPHP &gt;=7.4CI failing

Since May 4Pushed 1y 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 1mo ago

READMEChangelog (10)Dependencies (27)Versions (27)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

53

—

FairBetter than 97% of packages

Maintenance49

Moderate activity, may be stable

Popularity50

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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 ~167 days

Recently: every ~82 days

Total

25

Last Release

370d 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)")[![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)")[![gwinn](https://avatars.githubusercontent.com/u/477726?v=4)](https://github.com/gwinn "gwinn (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

[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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