{"id":22736895,"url":"https://github.com/wangta69/curl","last_synced_at":"2026-04-14T00:01:16.478Z","repository":{"id":62546495,"uuid":"119917015","full_name":"wangta69/curl","owner":"wangta69","description":"curl for pondol packages","archived":false,"fork":false,"pushed_at":"2020-10-30T03:05:40.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T12:06:41.006Z","etag":null,"topics":["curl","laravel","php"],"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/wangta69.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":"2018-02-02T01:50:44.000Z","updated_at":"2020-10-30T03:04:55.000Z","dependencies_parsed_at":"2022-11-02T22:01:52.034Z","dependency_job_id":null,"html_url":"https://github.com/wangta69/curl","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/wangta69/curl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangta69%2Fcurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangta69%2Fcurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangta69%2Fcurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangta69%2Fcurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangta69","download_url":"https://codeload.github.com/wangta69/curl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangta69%2Fcurl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262063487,"owners_count":23252764,"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":["curl","laravel","php"],"created_at":"2024-12-10T22:08:04.136Z","updated_at":"2025-10-26T17:03:26.748Z","avatar_url":"https://github.com/wangta69.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# curl\n\n## Installation\n```\ncomposer require wangta69/curl\n\ncomposer require \"wangta69/curl @dev\"\n\n```\n## How to Use\n```\nuse Wangta69\\Curl\\CurlService;\n\n$body = ['name'=\u003e'pondol'];\n$headers = ['Connection: Keep-Alive', 'Content-type: application/x-www-form-urlencoded;charset=UTF-8'];\n\n$headers[] = 'Host: shop-wiz.com'];\n$headers[] = 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0'];\n$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'];\n$headers[] = 'Accept-Language: en-US,en;q=0.5'];\n$headers[] = 'Accept-Encoding: gzip, deflate'];//#remove this line for readable/greppable formatting\n$headers[] = 'Content-Encoding: gzip';//Transfer-Encoding\n$headers[] = 'Referer: https://shop-wiz.com/tmp.php'];\n$headers[] = 'Cookie: all required cookies will appear here'];\n$headers[] = 'Connection: keep-alive'];\n\n\n$curl = new CurlService();\n$curl-\u003erequest('GET', 'http://www.shop-wiz.com', ['body'=\u003e$body, 'headers'=\u003e$headers]);\necho $curl-\u003ebody();\n\n\n$curl = new CurlService();\n$curl-\u003erequest('POST', 'http://www.shop-wiz.com', ['body'=\u003e$body, 'headers'=\u003e$headers]);\necho $curl-\u003ebody();\n\n-- Cookie\n$curl = new CurlService();\n$curl-\u003erequest('GET', 'http://www.shop-wiz.com', ['cookies'=\u003etrue]);\n$curl-\u003erequest('GET', 'http://www.shop-wiz.com', ['cookies'=\u003e['filepath'=\u003e'/tmp/my_cookie_file']]);\necho $curl-\u003ebody();\n```\n\n### Request Json\n```\nuse Wangta69\\Curl\\CurlService;\n\n$body = json_encode(['name'=\u003e'pondol']);\n\n$curl = new CurlService();\n$curl-\u003erequestJson('POST', 'http://www.shop-wiz.com', ['body'=\u003e$body, 'headers'=\u003e$headers]);\necho $curl-\u003ebody();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangta69%2Fcurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangta69%2Fcurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangta69%2Fcurl/lists"}