PHPackages                             bi0r0b0t/silex-pinba-provider - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bi0r0b0t/silex-pinba-provider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bi0r0b0t/silex-pinba-provider
=============================

Provide PinbaBundle for Silex

1.0.7(8y ago)0687MITPHP

Since Mar 9Pushed 8y agoCompare

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

READMEChangelogDependencies (7)Versions (14)Used By (0)

silex-pinba-provider
====================

[](#silex-pinba-provider)

Provide [PinbaBundle](https://github.com/intaro/pinba-bundle) functionality for [Silex](http://silex.sensiolabs.org/)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/16adb0198f7cf2ccdb9bf72d35a135047e797bdfd3ab4619ed7578193b2eb9e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42493052304230542f73696c65782d70696e62612d70726f76696465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/BI0R0B0T/silex-pinba-provider/?branch=master)[![Build Status](https://camo.githubusercontent.com/048ec6c9e5159467b5cbf582151a5a0eb35ea4d9da4aa656d7e36e85cacf9cd2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42493052304230542f73696c65782d70696e62612d70726f76696465722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/BI0R0B0T/silex-pinba-provider/build-status/master)

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

[](#installation)

### For Silex 2.0

[](#for-silex-20)

```
    composer require bi0r0b0t/silex-pinba-provider
```

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

```
{
    "require": {
        "bi0r0b0t/silex-pinba-provider": "~1.0",
    }
}
```

### For Silex 1.0

[](#for-silex-10)

Through [Composer](http://getcomposer.org) as [bi0r0b0t/silex-pinba-provider](https://packagist.org/packages/bi0r0b0t/silex-pinba-provider) .

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

```
{
    "require": {
        "bi0r0b0t/silex-pinba-provider": "~0.1",
    }
}
```

Register
--------

[](#register)

**Important!** Register the bundle in `prod` environment after TwigServiceProvider and DoctrineServiceProvider:

```
/**
 * @var $app Silex\Application
 */
$app->register(new SilexPinbaProvider\SilexPinbaProvider()
```

Using with Doctrine ORM
-----------------------

[](#using-with-doctrine-orm)

Examples based on [dflydev/doctrine-orm-service-provider](https://packagist.org/packages/dflydev/doctrine-orm-service-provider)

### Collecting Filesystem metrics

[](#collecting-filesystem-metrics)

```
/**
 * @var $app Silex\Application
 */
$app['orm.cache.factory.filesystem'] = $app->protect(function($cacheOptions) use ($app) {
    if (empty($cacheOptions['path'])) {
        throw new \RuntimeException('FilesystemCache path not defined');
    }
    $cache = new  SilexPinbaProvider\Cache\Filesystem($cacheOptions['path']);
    $cache->setStopwatch($app['intaro_pinba.stopwatch']);
    return $cache;
});
```

### Collecting Memcache metrics

[](#collecting-memcache-metrics)

```
/**
 * @var $app Silex\Application
 */
$app['orm.cache.factory.backing_memcache'] = $app->protect(function() use ($app) {
   $cache = new Intaro\PinbaBundle\Cache\Memcache();
   $cache->setStopwatch($app['intaro_pinba.stopwatch']);
   return $cache;
});
```

Using with console
------------------

[](#using-with-console)

```
/**
 * @var $console Symfony\Component\Console\Application
 * @var $app     Silex\Application
 */
if (function_exists('pinba_script_name_set')) {
    pinba_script_name_set('console');
    $input = new Symfony\Component\Console\Input\ArgvInput();
    $timer = pinba_timer_start(array(
        'server'  => $app['intaro_pinba.server.name'],
        'group'   => 'console::run',
        'command' => $input->getFirstArgument(),
    ));
    $res = $console->run($input);
    pinba_timer_stop($timer);
    return $res;
} else {
    return $console->run();
}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~75 days

Recently: every ~43 days

Total

12

Last Release

2935d ago

Major Versions

0.1.4 → 1.0.12017-11-15

### Community

Maintainers

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

---

Top Contributors

[![BI0R0B0T](https://avatars.githubusercontent.com/u/1674127?v=4)](https://github.com/BI0R0B0T "BI0R0B0T (1 commits)")

---

Tags

phpsilexpinba

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bi0r0b0t-silex-pinba-provider/health.svg)

```
[![Health](https://phpackages.com/badges/bi0r0b0t-silex-pinba-provider/health.svg)](https://phpackages.com/packages/bi0r0b0t-silex-pinba-provider)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[metamodels/core

MetaModels core

10156.4k67](/packages/metamodels-core)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k91](/packages/contao-community-alliance-dc-general)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k6](/packages/terminal42-contao-node)

PHPackages © 2026

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