{"id":24667421,"url":"https://github.com/emagtechlabs/guzzlemiddleware","last_synced_at":"2025-10-08T04:31:09.707Z","repository":{"id":53022124,"uuid":"223921139","full_name":"eMAGTechLabs/GuzzleMiddleware","owner":"eMAGTechLabs","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-17T12:30:48.000Z","size":42,"stargazers_count":0,"open_issues_count":1,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-17T18:22:09.328Z","etag":null,"topics":[],"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/eMAGTechLabs.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":"CODEOWNERS","security":null,"support":null}},"created_at":"2019-11-25T10:24:46.000Z","updated_at":"2022-07-19T08:20:23.000Z","dependencies_parsed_at":"2022-08-21T08:10:49.557Z","dependency_job_id":null,"html_url":"https://github.com/eMAGTechLabs/GuzzleMiddleware","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMAGTechLabs%2FGuzzleMiddleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMAGTechLabs%2FGuzzleMiddleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMAGTechLabs%2FGuzzleMiddleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMAGTechLabs%2FGuzzleMiddleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eMAGTechLabs","download_url":"https://codeload.github.com/eMAGTechLabs/GuzzleMiddleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235679171,"owners_count":19028323,"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":[],"created_at":"2025-01-26T08:17:04.696Z","updated_at":"2025-10-08T04:31:09.379Z","avatar_url":"https://github.com/eMAGTechLabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guzzle Middleware\nThis is a Guzzle middleware, which allows you to profile an http call, and send information to statsd daemon.\n## Requirements\n\n### Dependencies\n\n| Dependency | Version \n|:--- |:---:|\n| **`php`** | ^7.2 \u0026#124; ^8.1 |\n| **`guzzlehttp/guzzle`** | ^6.0 \u0026#124; ^7.0 | \n| **`liuggio/statsd-php-client`** | ^1.0 | \n| **`slickdeals/statsd`** | ^2.0 |\n\n## Installation\n\nThis library is installed via [`composer`](http://getcomposer.org).\n\n```bash\ncomposer require \"emag-tech-labs/guzzle-middleware\"\n```\n\n## Usage\nThe package is able to work with 2 different statsd libraries, illugio or dominikl. Based on you're choice you will have to use the right adapter (DominikAdapter or IlugioAdapter) in order to instantiate the statsd client.  \n\n## Example\n\n\n```php\n$statsdClient = new DominikAdapter($dominikStatsdClient);\n$handlerStack = new HandlerStack();\n$handlerStack-\u003epush(new TimingProfiler($statsdClient));\n$handlerStack-\u003epush(new HttpCodeProfiler($statsdClient));\n\n$client = new Client(['handler' =\u003e $handlerStack]);\n```\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femagtechlabs%2Fguzzlemiddleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femagtechlabs%2Fguzzlemiddleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femagtechlabs%2Fguzzlemiddleware/lists"}