{"id":19959700,"url":"https://github.com/reinfi/zf-guzzle-emitter","last_synced_at":"2025-10-28T09:03:26.469Z","repository":{"id":62534489,"uuid":"101796626","full_name":"reinfi/zf-guzzle-emitter","owner":"reinfi","description":"Zend Framework Module to register emitter to guzzle client via configuration","archived":false,"fork":false,"pushed_at":"2017-08-29T20:07:14.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T07:35:47.868Z","etag":null,"topics":["emitter","guzzlehttp","subscriber","zend-framework"],"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/reinfi.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":"2017-08-29T19:03:35.000Z","updated_at":"2018-01-02T16:10:05.000Z","dependencies_parsed_at":"2022-11-02T16:01:10.544Z","dependency_job_id":null,"html_url":"https://github.com/reinfi/zf-guzzle-emitter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfi%2Fzf-guzzle-emitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfi%2Fzf-guzzle-emitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfi%2Fzf-guzzle-emitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfi%2Fzf-guzzle-emitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reinfi","download_url":"https://codeload.github.com/reinfi/zf-guzzle-emitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241390204,"owners_count":19955278,"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":["emitter","guzzlehttp","subscriber","zend-framework"],"created_at":"2024-11-13T01:51:05.148Z","updated_at":"2025-10-13T02:18:32.194Z","avatar_url":"https://github.com/reinfi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/reinfi/zf-guzzle-emitter.svg?branch=master)](https://travis-ci.org/reinfi/zf-guzzle-emitter)\n[![Code Climate](https://codeclimate.com/github/reinfi/zf-guzzle-emitter/badges/gpa.svg)](https://codeclimate.com/github/reinfi/zf-guzzle-emitter)\n[![Coverage Status](https://coveralls.io/repos/github/reinfi/zf-guzzle-emitter/badge.svg?branch=master)](https://coveralls.io/github/reinfi/zf-guzzle-emitter?branch=master)\n\nConfigure guzzle emitter subscriber via configuration.\n\n1. [Installation](#installation)\n2. [Usage](#usage)\n\n### Installation\n\n1. Install with Composer: `composer require reinfi/zf-guzzle-emitter`.\n2. Enable the module via ZF2 config in `appliation.config.php` under `modules` key:\n\n```php\n    return [\n        'modules' =\u003e [\n            'Reinfi\\GuzzleEmitter',\n            // other modules\n        ],\n    ];\n```\n\n### Usage\nTo use it you need to register your subscriber under the following config key.\n```php\n'guzzle_emitter' =\u003e [\n    'subscriber' =\u003e [\n        YourSubscriber::class,\n    ],\n]\n```\nAll your subscribers must be registered within the service locator.\n\nWhen you need to get a new guzzle client you just pass the following options\n```php\n$options = [\n    'emitter' =\u003e $container-\u003eget(\\Reinfi\\GuzzleEmitter\\Emitter::class);,\n    '...'     =\u003e '',\n];\n\n$client = new Client($options);\n```\n\nFor information how to write subscriber see http://docs.guzzlephp.org/en/5.3/events.html#event-subscribers\n\n### FAQ\nFeel free to ask any questions or open own pull requests.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freinfi%2Fzf-guzzle-emitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freinfi%2Fzf-guzzle-emitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freinfi%2Fzf-guzzle-emitter/lists"}