{"id":26128134,"url":"https://github.com/pdffiller/cuzzle","last_synced_at":"2026-04-24T07:34:24.292Z","repository":{"id":89900660,"uuid":"53506895","full_name":"pdffiller/cuzzle","owner":"pdffiller","description":"Cuzzle client","archived":false,"fork":false,"pushed_at":"2019-08-28T12:44:30.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-10T18:57:13.003Z","etag":null,"topics":["backend"],"latest_commit_sha":null,"homepage":null,"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/pdffiller.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}},"created_at":"2016-03-09T15:05:10.000Z","updated_at":"2024-08-30T16:19:33.000Z","dependencies_parsed_at":"2023-05-30T10:45:24.710Z","dependency_job_id":null,"html_url":"https://github.com/pdffiller/cuzzle","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/pdffiller/cuzzle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdffiller%2Fcuzzle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdffiller%2Fcuzzle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdffiller%2Fcuzzle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdffiller%2Fcuzzle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdffiller","download_url":"https://codeload.github.com/pdffiller/cuzzle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdffiller%2Fcuzzle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32214417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["backend"],"created_at":"2025-03-10T18:50:41.893Z","updated_at":"2026-04-24T07:34:24.288Z","avatar_url":"https://github.com/pdffiller.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cuzzle, cURL command from Guzzle requests\n\n[![Build Status](https://travis-ci.org/namshi/cuzzle.svg?branch=master)](https://travis-ci.org/namshi/cuzzle)\n\nDEPRECATED! USE original package instead.\n\n## Prerequisites\n\nThis library needs PHP 5.4+.\n\nIt has been tested using PHP5.4 to PHP5.6 and HHVM.\n\n## Installation\n\nYou can install the library directly with composer:\n```\n\"namshi/cuzzle\": \"0.1.1\"\n```\n\n\n## Usage\n\n```php\n\nuse Namshi\\Cuzzle\\Formatter\\CurlFormatter;\nuse GuzzleHttp\\Message\\Request;\n\n$request = new Request('GET', 'example.local');\n\necho (new CurlFormatter())-\u003eformat($request);\n\n```\n\nTo log the cURL request generated from a Guzzle request, simply add CurlFormatterSubscriber to Guzzle:\n\n```php\n\nuse GuzzleHttp\\Client;\nuse Namshi\\Cuzzle\\Subscriber\\CurlFormatterSubscriber;\nuse Monolog\\Logger;\nuse Monolog\\Handler\\TestHandler;\n\n$logger = new Logger('guzzle.to.curl'); //initialize the logger\n$testHandler = new TestHandler(); //test logger handler\n$logger-\u003epushHandler($testHandler);\n\n$client  = new Client(); //initialize a Guzzle client\n$client-\u003egetEmitter()-\u003eattach(new CurlFormatterSubscriber($logger)); //add the cURL formatter subscriber\n\n$response = $client-\u003eget('http://google.com'); //let's fire a request\n\nvar_dump($testHandler-\u003egetRecords()); //check the cURL request in the logs, \n//you should see something like: \"curl 'http://google.com' -H 'User-Agent: Guzzle/4.2.1 curl/7.37.1 PHP/5.5.16\"\n\n```\n\n## Tests\n\nYou can run tests locally with\n\n```\nphpunit\n```\n\n## Feedback\n\nAdd an issue, open a PR, drop us an email! We would love to hear from you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdffiller%2Fcuzzle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdffiller%2Fcuzzle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdffiller%2Fcuzzle/lists"}