{"id":16413956,"url":"https://github.com/willwashburn/curl","last_synced_at":"2025-07-30T14:34:17.800Z","repository":{"id":57080912,"uuid":"53130093","full_name":"willwashburn/curl","owner":"willwashburn","description":"1-1 class mapping of the cURL library so it can be mocked / stubbed","archived":false,"fork":false,"pushed_at":"2016-03-04T11:46:36.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T00:40:03.079Z","etag":null,"topics":["curl","curl-library","http"],"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/willwashburn.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":"2016-03-04T11:13:00.000Z","updated_at":"2016-03-04T11:24:26.000Z","dependencies_parsed_at":"2022-08-24T14:58:11.965Z","dependency_job_id":null,"html_url":"https://github.com/willwashburn/curl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/willwashburn/curl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwashburn%2Fcurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwashburn%2Fcurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwashburn%2Fcurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwashburn%2Fcurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willwashburn","download_url":"https://codeload.github.com/willwashburn/curl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwashburn%2Fcurl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267882863,"owners_count":24160218,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["curl","curl-library","http"],"created_at":"2024-10-11T06:52:51.863Z","updated_at":"2025-07-30T14:34:17.741Z","avatar_url":"https://github.com/willwashburn.png","language":"PHP","readme":"# Curl \n1-1 class mapping of the cURL library so it can be mocked / stubbed\n\nSometimes, you just want to use cURL and not some abstracted class like guzzle. This is a simple wrapper for cURL so you can do that and still write meaningful tests.\n\n# Usage\n ```PHP\nclass SomeClassThatUsesCurl {\n\n\n    protected $curl;\n\n    public function __construct(WillWashburn\\Curl $curl) {\n    \n        $this-\u003ecurl = $curl;\n    \n    }\n    \n    public function someMethodThatMakesARequest() {\n    \n        // Use curl like normal but also be able to test!\n        $ch = $this-\u003ecurl-\u003ecurl_init($url);\n        $this-\u003ecurl-\u003ecurl_setopt($ch, CURLOPT_HEADER, true);\n    \n    }\n\n\n}\n```\n\n# Installation\nUse composer\n\n```composer require willwashburn/curl```\n\nAlternatively, add ```\"willwashburn/curl\": \"1.0\"``` to your composer.json\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillwashburn%2Fcurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillwashburn%2Fcurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillwashburn%2Fcurl/lists"}