GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - incarnate/curl-to-php: Convert curl commands to PHP code in your browser

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
resources
resources
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
index.html
index.html
 
 

Repository files navigation

Curl-to-PHP

Curl-to-PHP is a tool to instantly convert curl 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.

This is a derivitive of curl-to-Go, which converts curl to a Go.

Try it

Check it out! It works inside your browser. Just give the code a once-over since you may want to improve the error handling.

FAQ

Does any curl command work?

Any curl command should work, but only certain flags are understood and converted into PHP code. The rest of the flags will be ignored.

Which kinds of curl commands are understood?

Mostly simple HTTP commands (headers, basic auth, body, etc).

Will you consider supporting this-or-that flag?

curl 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!

Credits

Curl-to-PHP is brought to you by John C (@incarnated), based on the work of Matt Holt (mholt6).

About

Convert curl commands to PHP code in your browser

incarnate.github.io/curl-to-php/

Topics

converts-curlcurlphp

Resources

Readme
MIT license
Activity

Stars

412 stars

Watchers

13 watching

Forks

141 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.