cURL to PHP Converter
A modern web tool to convert cURL commands to PHP code. Features syntax highlighting, multiple HTTP methods support, and automatic header parsing. Built with Tailwind CSS for a clean, responsive interface.
Features
- 🔄 Convert browser cURL commands to PHP code instantly
- 🌐 Support for multiple HTTP methods (GET, POST, PUT, DELETE)
- 📋 Automatic header parsing and formatting
- 💻 Beautiful syntax highlighting with Prism.js
- 📱 Responsive design that works on all devices
- ⚡ Fast and lightweight with no dependencies
- 🎨 Modern UI with Tailwind CSS
- 📋 One-click code copying
Usage
- Copy a cURL command from your browser's developer tools
- Paste it into the input box
- Select the appropriate HTTP method (if needed)
- Click "Generate" to get the PHP code
- Use the "Copy" button to copy the code to your clipboard
Technologies Used
- HTML5
- Tailwind CSS for styling
- JavaScript for conversion logic
- Prism.js for syntax highlighting
Live Demo
Visit https://pratyush295300.github.io/curl-converter to try it out!
Local Development
To run this project locally:
Clone the repository
git clone https://github.com/pratyush295300/curl-converter.git
Open index.html
in your browser
Credits
Made with ❤ by Pratyush • © 2025