1. Go to this page and download the library: Download hashbangcode/curl_converter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hashbangcode / curl_converter example snippets
use Hashbangcode\CurlConverter\Input\CurlInput;
use Hashbangcode\CurlConverter\Output\PhpOutput;
use Hashbangcode\CurlConverter\CurlConverter;
$input = new CurlInput();
$output = new PhpOutput();
$converter = new CurlConverter($input, $output);
$command = 'curl https://www.hashbangcode.com/';
$converted = $converter->convert($command);
use Hashbangcode\CurlConverter\Output\PhpOutput;
use Hashbangcode\CurlConverter\CurlParameters;
$output = new PhpOutput();
$curlConverter = new CurlConverter();
$curlConverter->setUrl('https://www.example.com/');
$result = $output->convert($curlConverter);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.