{"id":14989945,"url":"https://github.com/incarnate/curl-to-php","last_synced_at":"2025-04-05T10:09:16.247Z","repository":{"id":41371440,"uuid":"51670051","full_name":"incarnate/curl-to-php","owner":"incarnate","description":"Convert curl commands to PHP code in your browser","archived":false,"fork":false,"pushed_at":"2022-02-07T08:58:58.000Z","size":82,"stargazers_count":405,"open_issues_count":19,"forks_count":147,"subscribers_count":14,"default_branch":"gh-pages","last_synced_at":"2025-03-29T09:11:39.300Z","etag":null,"topics":["converts-curl","curl","php"],"latest_commit_sha":null,"homepage":"https://incarnate.github.io/curl-to-php/","language":"JavaScript","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/incarnate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"incarnate","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-02-13T23:05:53.000Z","updated_at":"2025-02-27T06:01:35.000Z","dependencies_parsed_at":"2022-07-30T07:38:07.220Z","dependency_job_id":null,"html_url":"https://github.com/incarnate/curl-to-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incarnate%2Fcurl-to-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incarnate%2Fcurl-to-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incarnate%2Fcurl-to-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incarnate%2Fcurl-to-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/incarnate","download_url":"https://codeload.github.com/incarnate/curl-to-php/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"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":["converts-curl","curl","php"],"created_at":"2024-09-24T14:19:12.435Z","updated_at":"2025-04-05T10:09:16.223Z","avatar_url":"https://github.com/incarnate.png","language":"JavaScript","readme":"Curl-to-PHP\n===========\n\nCurl-to-PHP is a tool to instantly convert [curl](http://curl.haxx.se) commands to PHP code in the browser. It does *not* guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.\n\nThis is a derivitive of [curl-to-Go](http://mholt.github.io/curl-to-go/), which converts curl to a Go.\n\n\n### Try it\n\n**[Check it out!](https://incarnate.github.io/curl-to-php)** It works inside your browser. Just give the code a once-over since you may want to improve the error handling.\n\n\n### FAQ\n\n#### Does any curl command work?\n\nAny curl command should work, but only certain flags are understood and converted into PHP code. The rest of the flags will be ignored.\n\n#### Which kinds of curl commands are understood?\n\nMostly simple HTTP commands (headers, basic auth, body, etc).\n\n#### Will you consider supporting *this-or-that* flag?\n\ncurl has like a bajillion options, so don't expect all of them to be implemented; just the most common/important ones to stub out code from API samples and docs, etc. But feel free to open an issue or submit a pull request!\n\n\n\n### Credits\n\nCurl-to-PHP is brought to you by John C ([@incarnated](https://twitter.com/incarnated)), based on the work of Matt Holt ([mholt6](https://twitter.com/mholt6)).\n","funding_links":["https://github.com/sponsors/incarnate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincarnate%2Fcurl-to-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincarnate%2Fcurl-to-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincarnate%2Fcurl-to-php/lists"}