{"id":25415169,"url":"https://github.com/e-moe/guzzle6-bundle","last_synced_at":"2025-10-31T07:32:10.907Z","repository":{"id":33748560,"uuid":"37403552","full_name":"e-moe/guzzle6-bundle","owner":"e-moe","description":"Integrates Guzzle 6 into your Symfony application","archived":false,"fork":false,"pushed_at":"2022-06-14T12:33:50.000Z","size":2014,"stargazers_count":11,"open_issues_count":5,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-14T16:33:06.153Z","etag":null,"topics":["bundle","guzzle","packagist","php","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/e-moe.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}},"created_at":"2015-06-14T07:35:03.000Z","updated_at":"2021-05-01T00:32:29.000Z","dependencies_parsed_at":"2022-08-21T11:50:12.061Z","dependency_job_id":null,"html_url":"https://github.com/e-moe/guzzle6-bundle","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-moe%2Fguzzle6-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-moe%2Fguzzle6-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-moe%2Fguzzle6-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-moe%2Fguzzle6-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-moe","download_url":"https://codeload.github.com/e-moe/guzzle6-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239148007,"owners_count":19589703,"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","guzzle","packagist","php","symfony","symfony-bundle"],"created_at":"2025-02-16T15:21:45.142Z","updated_at":"2025-10-31T07:32:10.491Z","avatar_url":"https://github.com/e-moe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony Guzzle6Bundle\n\n[![Latest Stable Version](https://poser.pugx.org/e-moe/guzzle6-bundle/v/stable)](https://packagist.org/packages/e-moe/guzzle6-bundle)\n[![Total Downloads](https://poser.pugx.org/e-moe/guzzle6-bundle/downloads)](https://packagist.org/packages/e-moe/guzzle6-bundle)\n[![Latest Unstable Version](https://poser.pugx.org/e-moe/guzzle6-bundle/v/unstable)](https://packagist.org/packages/e-moe/guzzle6-bundle)\n[![License](https://poser.pugx.org/e-moe/guzzle6-bundle/license)](https://packagist.org/packages/e-moe/guzzle6-bundle)\n\n[![Build Status](https://travis-ci.org/e-moe/guzzle6-bundle.svg?branch=master)](https://travis-ci.org/e-moe/guzzle6-bundle)\n[![Coverage Status](https://coveralls.io/repos/e-moe/guzzle6-bundle/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/e-moe/guzzle6-bundle?branch=master)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b78325e0-a85f-477a-bd98-13ab1a551742/mini.png)](https://insight.sensiolabs.com/projects/b78325e0-a85f-477a-bd98-13ab1a551742)\n\nThis bundle integrates [Guzzle 6.x][guzzle] into Symfony. Guzzle is a PHP framework for building RESTful web service clients.\n\n## Requirements\n\n - PHP 5.6 or above\n - Symfony 2.7 or above (including Symfony 3.x, 4.x, 5.x)\n\n \n## Installation\nTo install this bundle, run the command below and you will get the latest version by [Packagist][packagist].\n\n``` bash\ncomposer require e-moe/guzzle6-bundle\n```\n\nTo use the newest (maybe unstable) version please add following into your composer.json:\n\n``` json\n{\n    \"require\": {\n        \"e-moe/guzzle6-bundle\": \"dev-master\"\n    }\n}\n```\n\n\n## Usage\n\nLoad bundle in AppKernel.php (should be done automatically if you are using Symfony Flex):\n``` php\nnew Emoe\\GuzzleBundle\\EmoeGuzzleBundle(),\n```\n\nConfiguration in config.yml (optional):\n``` yaml\nemoe_guzzle:\n    log:\n        enabled: true # Logging requests to Monolog\n        format: 'Guzzle: [{ts}] \"{method} {uri} HTTP/{version}\" {code}' # Optional log format customization\n```\nsee more about [log format syntax][log-format].\n\nUsing Guzzle in controllers:\n``` php\n$client   = $this-\u003eget('guzzle.client');\n$response = $client-\u003eget('http://example.com');\n```\n\nUsing Guzzle in your own services:\n``` yaml\n  application.my_service:\n    class: App\\Service\\MyService\n    arguments:\n      - \"@guzzle.client\"\n```\nor you can just use [autowire][autowire] feature with `GuzzleHttp\\ClientInterface` type hint.\n\n## Features\n\n### Symfony Debug Profiler\n\n\u003cimg src=\"/src/Resources/doc/img/profiler.png\" alt=\"Guzzle Requests\" title=\"Symfony Debug Toolbar - Guzzle Logs\" /\u003e\n\n### Symfony Debug Timeline\n\n\u003cimg src=\"/src/Resources/doc/img/timeline.png\" alt=\"Guzzle Timeline Integration\" title=\"Symfony Debug Toolbar - Timeline Integration\" /\u003e\n\n### Symfony Debug Toolbar\n\n\u003cimg src=\"/src/Resources/doc/img/toolbar.png\" alt=\"Guzzle Toolbar Integration\" title=\"Symfony Debug Toolbar Integration\" /\u003e\n\n### Symfony Debug Logs (Monolog Integration)\n\n\u003cimg src=\"/src/Resources/doc/img/logs.png\" alt=\"Guzzle Monolog Logs\" title=\"Symfony Debug Toolbar Logs\" /\u003e\n\n\n## Suggestions\n\nAdding aliases:\nIf you want to use different names for provided services you can use aliases. This is a good idea if you don't want \nhave any dependency to guzzle in your service name.\n``` yaml\nservices:\n   http.client:\n       alias: guzzle.client\n```\n\nCreating multiple clients:\nIf you want to have different Guzzle clients in your application all you need is to define them in services file and\nadd \"guzzle.client\" tag to turn on Symfony integration (Debug toolbar, logs, so on..).\n``` yaml\nservices:\n    guzzle.client_one:\n        class: GuzzleHttp\\Client\n        tags:\n            - { name: guzzle.client }\n\n    guzzle.client_two:\n        class: GuzzleHttp\\Client\n        tags:\n            - { name: guzzle.client }\n```\n\n\n## Authors\n - Nikolay Labinskiy aka e-moe\n \nInspired by Chris Wilkinson's and Florian Preusner's GuzzleBundles ([1][misd-guzzle], [2][8p]).\n\nSee also the list of [contributors][contributors] who participated in this project.\n\n## License\n\nThis bundle is released under the [MIT license](LICENSE)\n\n[guzzle]:       http://guzzlephp.org/\n[packagist]:    https://packagist.org/packages/e-moe/guzzle6-bundle\n[autowire]:     https://symfony.com/doc/current/service_container.html#the-autowire-option\n[contributors]: https://github.com/e-moe/guzzle6-bundle/graphs/contributors\n[misd-guzzle]:  https://github.com/misd-service-development/guzzle-bundle\n[8p]:           https://github.com/8p/GuzzleBundle\n[log-format]:   https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php#L12\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-moe%2Fguzzle6-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-moe%2Fguzzle6-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-moe%2Fguzzle6-bundle/lists"}