{"id":18031653,"url":"https://github.com/intaro/pinba-bundle","last_synced_at":"2025-04-05T05:07:13.008Z","repository":{"id":16670066,"uuid":"19425787","full_name":"intaro/pinba-bundle","owner":"intaro","description":"Symfony bundle for pinba timers sending with time of operations execution for Doctrine, Twig and Memcache","archived":false,"fork":false,"pushed_at":"2024-10-29T15:37:46.000Z","size":61,"stargazers_count":22,"open_issues_count":3,"forks_count":15,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T04:09:02.036Z","etag":null,"topics":["bundle","php","pinba","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/intaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-04T12:13:28.000Z","updated_at":"2024-10-29T15:37:35.000Z","dependencies_parsed_at":"2024-12-29T00:27:24.957Z","dependency_job_id":"61ea462c-1915-48ff-8740-d657785ecb81","html_url":"https://github.com/intaro/pinba-bundle","commit_stats":{"total_commits":67,"total_committers":10,"mean_commits":6.7,"dds":0.5970149253731343,"last_synced_commit":"19ebb8df36f72b3a980a33b59d74d13d03dc36a6"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Fpinba-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Fpinba-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Fpinba-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Fpinba-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intaro","download_url":"https://codeload.github.com/intaro/pinba-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289428,"owners_count":20914464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","php","pinba","symfony","symfony-bundle"],"created_at":"2024-10-30T10:10:04.318Z","updated_at":"2025-04-05T05:07:12.981Z","avatar_url":"https://github.com/intaro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PinbaBundle #\n![CI](https://github.com/intaro/pinba-bundle/workflows/CI/badge.svg?branch=master)\n\n## About ##\n\nPinbaBundle is Symfony bundle for [pinba](http://pinba.org). \n\n    Important! Include this bundle only in `prod` environment.\n\nIt 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:\n\n![Pinba timers in Intaro Pinboard](http://intaro.github.io/pinboard/img/timers.png)\n\nAlso PinbaBundle changes pinba `script_name` variable to `request_uri` value otherwise pinba sends `app.php` in `script_name` for the requests.\n\n## Installation ##\n\nPinbaBundle requires Symfony 4.4 or higher.\n\nRequire the bundle in your `composer.json` file:\n\n```json\n{\n    \"require\": {\n        \"intaro/pinba-bundle\": \"^2.0\",\n    }\n}\n```\n\n**Important!** Register the bundle in `prod` environment:\n\n```php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = [\n        //...\n    ];\n\n    if ('prod' === $this-\u003eenvironment) {\n        $bundles[] = new Intaro\\PinbaBundle\\IntaroPinbaBundle();\n    }\n\n    //...\n}\n```\n\nInstall the bundle:\n\n```\n$ composer update intaro/pinba-bundle\n```\n\n## Usage ##\n\n### Configure script_name ###\n\nPinbaBundle automatically configures `script_name` variable of pinba.\n\n### Collecting Twig metrics ###\n\nPinbaBundle automatically collects metrics for Twig renders.\n\n### Collecting Doctrine metrics ###\n\nEdit `app/config/config_prod.yml` and add this lines:\n```yml\ndoctrine:\n    dbal:\n        logging: true\n```\n\nDon't worry. This config enables pinba logger which collects only queries execution time but not logs them.\n\n## Development ##\n\n### Run tests ###\n\nInstall vendors:\n```shell\nmake vendor\n```\n\nRun php-cs-fixer, phpstan and phpunit:\n```shell\nmake check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintaro%2Fpinba-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintaro%2Fpinba-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintaro%2Fpinba-bundle/lists"}