{"id":23059923,"url":"https://github.com/nixilla/api-logger-bundle","last_synced_at":"2025-09-07T10:35:52.645Z","repository":{"id":10516804,"uuid":"12705597","full_name":"nixilla/api-logger-bundle","owner":"nixilla","description":"API logger bundle help your app with API calls monitoring","archived":false,"fork":false,"pushed_at":"2021-03-29T10:39:05.000Z","size":75,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T22:00:51.547Z","etag":null,"topics":["api-logger","symfony-bundle","symfony-toolbar-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nixilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-09T15:50:22.000Z","updated_at":"2022-12-31T00:19:30.000Z","dependencies_parsed_at":"2022-09-22T14:40:59.139Z","dependency_job_id":null,"html_url":"https://github.com/nixilla/api-logger-bundle","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixilla%2Fapi-logger-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixilla%2Fapi-logger-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixilla%2Fapi-logger-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixilla%2Fapi-logger-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixilla","download_url":"https://codeload.github.com/nixilla/api-logger-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229882913,"owners_count":18138908,"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":["api-logger","symfony-bundle","symfony-toolbar-extension"],"created_at":"2024-12-16T03:10:50.386Z","updated_at":"2024-12-16T03:10:50.966Z","avatar_url":"https://github.com/nixilla.png","language":"PHP","readme":"# API Logger Bundle\n\n[![Version](https://img.shields.io/packagist/v/nixilla/api-logger-bundle.svg?style=flat-square)](https://packagist.org/packages/nixilla/api-logger-bundle)\n[![Build Status](https://travis-ci.org/nixilla/api-logger-bundle.svg?branch=develop)](https://travis-ci.org/nixilla/api-logger-bundle)\n[![Coverage Status](https://coveralls.io/repos/github/nixilla/api-logger-bundle/badge.svg?branch=develop)](https://coveralls.io/github/nixilla/api-logger-bundle?branch=develop)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nixilla/api-logger-bundle/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/nixilla/api-logger-bundle/?branch=develop)\n[![License](https://poser.pugx.org/nixilla/api-logger-bundle/license.svg)](https://packagist.org/packages/nixilla/api-logger-bundle)\n\n## Versions\n\nFor `buzz\u003c0.16` please use `nixilla/api-logger-bundle:^0.4` and for latest `buzz:^1`, use `nixilla/api-logger-bundle:^0.5.1`\n\n## Installation\n\nStep 1: composer\n\n```bash\ncomposer require nixilla/api-logger-bundle\n```\n\nStep 2: enable bundle by adding it to AppKernel\n\n\n```php\n\u003c?php\n\n    // app/AppKernel.php\n\n    if (in_array($this-\u003egetEnvironment(), array('dev', 'test'))) {\n        // your other dev bundles here\n        $bundles[] = new Nixilla\\Api\\LoggerBundle\\NixillaApiLoggerBundle();\n    }\n\n```\n\nStep 3: configuration\n\nFor latest buzz all you need to do is add this line into `config/packages/buzz.yml`\n\n```yaml\nservices:\n    Buzz\\Browser:\n        arguments: ['@Buzz\\Client\\BuzzClientInterface', '@Psr\\Http\\Message\\RequestFactoryInterface']\n        calls:\n            # other middleware classes here\n            - ['addMiddleware', ['@Nixilla\\Api\\LoggerBundle\\Middleware\\ApiLoggerMiddleware']]\n```\n\nFor earlier version of buzz \u003c0.16 and earlier version of this bundle \u003c0.5 you need to configure like this:\n\nIf you're use HWIOAuthBundle and you want to monitor all OAuth API calls, you can now override default\n`hwi_oauth.http_client` service used by this bundle by adding this few lines to your `config_dev.yml` file\n\n```yaml\n# app/config/config_dev.yml\nimports:\n    - { resource: config.yml }\n\nparameters:\n    buzz.client.class: Nixilla\\Api\\LoggerBundle\\Proxy\\Buzz\\Client\\Curl\n\nservices:\n    hwi_oauth.http_client:\n        class: \"%buzz.client.class%\"\n        calls:\n            - [ \"setLogger\", [ \"@nixilla.api.logger\" ] ]\n```\n\nIf you're using `sensio/buzz-bundle`, you may want to override the `buzz.client` in config_dev.yml\n\n```yaml\n# app/config/config_dev.yml\nimports:\n    - { resource: config.yml }\n\nparameters:\n    buzz.client.class: Nixilla\\Api\\LoggerBundle\\Proxy\\Buzz\\Client\\Curl\n\nservices:\n    buzz.client:\n        class: \"%buzz.client.class%\"\n        calls:\n            - [ \"setTimeout\", [ \"%buzz.client.timeout%\" ] ]\n            - [ \"setLogger\", [ \"@nixilla.api.logger\" ] ]\n```\n\nIf you're using `twilio/sdk` you may want to override their Http Client in config_dev.yml\n\n```yaml\n# app/config/config_dev.yml\nimports:\n    - { resource: config.yml }\n\nservices:\n    \n    twilio.http.client:\n        class: Nixilla\\Api\\LoggerBundle\\Proxy\\Twilio\\CurlClient\n        calls:\n            - [ \"setLogger\", [ \"@nixilla.api.logger\" ] ]\n            \n    twilio.rest.client:\n        class: Twilio\\Rest\\Client\n        arguments: [ \"%twilio.username%\", \"%twilio.password%\", ~, ~, '@twilio.http.client']\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixilla%2Fapi-logger-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixilla%2Fapi-logger-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixilla%2Fapi-logger-bundle/lists"}