{"id":18412220,"url":"https://github.com/sbsedv/request-id-bundle","last_synced_at":"2026-02-05T22:03:28.124Z","repository":{"id":57681055,"uuid":"492868901","full_name":"SBSEDV/request-id-bundle","owner":"SBSEDV","description":"A Symfony bundle that adds a unique Request-ID.","archived":false,"fork":false,"pushed_at":"2025-11-02T17:17:29.000Z","size":147,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-02T18:19:43.732Z","etag":null,"topics":["logging","php","php8","request-id","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","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/SBSEDV.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-16T14:23:19.000Z","updated_at":"2025-11-02T17:17:32.000Z","dependencies_parsed_at":"2024-11-06T03:41:16.629Z","dependency_job_id":"6039af51-e13d-4bad-b81d-6dea924f7722","html_url":"https://github.com/SBSEDV/request-id-bundle","commit_stats":{"total_commits":57,"total_committers":1,"mean_commits":57.0,"dds":0.0,"last_synced_commit":"8165387d8cf7ba553ed2dc94ebd831ff88babd49"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/SBSEDV/request-id-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBSEDV%2Frequest-id-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBSEDV%2Frequest-id-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBSEDV%2Frequest-id-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBSEDV%2Frequest-id-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SBSEDV","download_url":"https://codeload.github.com/SBSEDV/request-id-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBSEDV%2Frequest-id-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29135939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T21:59:57.939Z","status":"ssl_error","status_checked_at":"2026-02-05T21:59:57.628Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["logging","php","php8","request-id","symfony","symfony-bundle"],"created_at":"2024-11-06T03:40:24.200Z","updated_at":"2026-02-05T22:03:28.103Z","avatar_url":"https://github.com/SBSEDV.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PHPStan](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpstan.yml/badge.svg)](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpstan.yml)\n[![PHPCS-Fixer](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpcsfixer.yml/badge.svg)](https://github.com/SBSEDV/request-id-bundle/actions/workflows/phpcsfixer.yml)\n\n# sbsedv/request-id-bundle\n\nA Symfony bundle that adds a unique Request-ID.\n\nIn the configuration examples shown below, the default values are used.\n\n---\n\nThe generic configuration is as follows:\n\n```yaml\n# config/packages/sbsedv_request_id.yaml\n\nsbsedv_request_id:\n    generator: \"SBSEDV\\Bundle\\RequestIdBundle\\Generator\\UuidRequestIdGenerator\"\n    # generator: \"SBSEDV\\Bundle\\RequestIdBundle\\Generator\\RequestIdGenerator\"\n    # generator: 'your_custom_service_id' (must implement RequestIdGeneratorInterface)\n\n    outgoing_http_header: \"x-request-id\" # http header that will be added\n    # outgoing_http_header: false # disables the header creation\n\n    incoming_http_header: false # disabled\n    # incoming_http_header: \"x-request-id\" # request header that contains the Request-ID to use\n```\n\nThe incoming http-header is only used when the `SBSEDV\\Bundle\\RequestIdBundle\\TrustStrategy\\TrustStrategyInterface` service trusts the incoming request. \u003cbr\u003e\nBy default the [PrivateIpTrustStrategy](src/TrustStrategy/PrivateIpTrustStrategy.php) is registered.\n\n---\n\n### **Twig Integration**\n\nIf your application has the [symfony/twig-bundle](https://github.com/symfony/twig-bundle) installed, the `request_id` twig function is registered.\n\n```twig\n{# templates/example.html.twig #}\n\n\u003cp\u003eRequest-ID: {{ request_id() }}\u003c/p\u003e\n```\n\nYou can customize the registered twig function name via:\n\n```yaml\n# config/packages/sbsedv_request_id.yaml\n\nsbsedv_request_id:\n    twig_function_name: \"request_id\"\n```\n\n---\n\n### **Error Renderer**\n\nBy default this bundle decorates the `error_renderer` service and inserts the current request id before the `\u003c/body\u003e` tag.\n\n```yaml\n# config/packages/sbsedv_request_id.yaml\n\nsbsedv_request_id:\n    error_renderer_decorator: false # enabled by default\n```\n\n---\n\n### **Monolog Integration**\n\nIf your application has the [symfony/monolog-bundle](https://github.com/symfony/monolog-bundle) installed, a log processor is registered that adds the request id to each record.\n\n```yaml\n# config/packages/sbsedv_request_id.yaml\n\nsbsedv_request_id:\n    monolog_processor:\n        key: \"request_id\" # Key to which the request id will be set\n    # monolog_processor: false # disables the processor\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbsedv%2Frequest-id-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbsedv%2Frequest-id-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbsedv%2Frequest-id-bundle/lists"}