Coder Social home page Coder Social logo

pivolan / curl-to-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from incarnate/curl-to-php

0.0 0.0 0.0 66 KB

Convert curl commands to PHP code in your browser

Home Page: https://incarnate.github.io/curl-to-php/

License: MIT License

HTML 8.02% CSS 14.52% JavaScript 77.45%

curl-to-php's Introduction

Curl-to-PHP

This is fork, don't use it! 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).

curl-to-php's People

Contributors

incarnate avatar nabikaz avatar pifagor87 avatar pivolan avatar simmac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.