├── .editorconfig ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml ├── pint.json ├── src ├── Console │ └── Commands │ │ └── CurlCommand.php ├── Models │ └── Request.php ├── Providers │ └── ServiceProvider.php └── Support │ └── HttpCall.php └── tests ├── Feature └── Console │ └── Commands │ └── CurlCommandTest.php ├── TestCase.php └── fixtures ├── accept-json-response.in ├── accept-json-response.out ├── basic-get.in ├── basic-get.out ├── basic-post.in ├── basic-post.out ├── connect-timeout.in ├── connect-timeout.out ├── digital-ocean-example.in ├── digital-ocean-example.out ├── ignore-location-flag.in ├── ignore-location-flag.out ├── mailgun-example.in ├── mailgun-example.out ├── max-timeout.in ├── max-timeout.out ├── missing-url-scheme.in ├── missing-url-scheme.out ├── post-json.in ├── post-json.out ├── post-with-data.in ├── post-with-data.out ├── post-with-form-data.in ├── post-with-form-data.out ├── put-with-data.in ├── put-with-data.out ├── raw-data-mixed.in ├── raw-data-mixed.out ├── request-with-data.in ├── request-with-data.out ├── request-with-form-data.in ├── request-with-form-data.out ├── stripe-example.in ├── stripe-example.out ├── stripe-query-params.in ├── stripe-query-params.out ├── with-cert-and-key.in ├── with-cert-and-key.out ├── with-cert-path-and-password.in ├── with-cert-path-and-password.out ├── with-cert-path-only.in ├── with-cert-path-only.out ├── with-collapsable-headers.in ├── with-collapsable-headers.out ├── with-compressed-option.in ├── with-compressed-option.out ├── with-headers.in ├── with-headers.out ├── with-insecure-k-option.in ├── with-insecure-k-option.out ├── with-insecure-option.in ├── with-insecure-option.out ├── with-query-string.in ├── with-query-string.out ├── with-raw-data.in └── with-raw-data.out /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/phpunit.xml -------------------------------------------------------------------------------- /pint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/pint.json -------------------------------------------------------------------------------- /src/Console/Commands/CurlCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/src/Console/Commands/CurlCommand.php -------------------------------------------------------------------------------- /src/Models/Request.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/src/Models/Request.php -------------------------------------------------------------------------------- /src/Providers/ServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/src/Providers/ServiceProvider.php -------------------------------------------------------------------------------- /src/Support/HttpCall.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/src/Support/HttpCall.php -------------------------------------------------------------------------------- /tests/Feature/Console/Commands/CurlCommandTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/Feature/Console/Commands/CurlCommandTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/fixtures/accept-json-response.in: -------------------------------------------------------------------------------- 1 | curl -H 'Accept: application/json' https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/accept-json-response.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/accept-json-response.out -------------------------------------------------------------------------------- /tests/fixtures/basic-get.in: -------------------------------------------------------------------------------- 1 | curl https://laravelshift.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/basic-get.out: -------------------------------------------------------------------------------- 1 | Http::get('https://laravelshift.com'); 2 | -------------------------------------------------------------------------------- /tests/fixtures/basic-post.in: -------------------------------------------------------------------------------- 1 | curl -X POST -d 'foo=bar' https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/basic-post.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/basic-post.out -------------------------------------------------------------------------------- /tests/fixtures/connect-timeout.in: -------------------------------------------------------------------------------- 1 | curl --connect-timeout 5 https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/connect-timeout.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/connect-timeout.out -------------------------------------------------------------------------------- /tests/fixtures/digital-ocean-example.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/digital-ocean-example.in -------------------------------------------------------------------------------- /tests/fixtures/digital-ocean-example.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/digital-ocean-example.out -------------------------------------------------------------------------------- /tests/fixtures/ignore-location-flag.in: -------------------------------------------------------------------------------- 1 | curl --location https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/ignore-location-flag.out: -------------------------------------------------------------------------------- 1 | Http::get('https://example.com'); 2 | -------------------------------------------------------------------------------- /tests/fixtures/mailgun-example.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/mailgun-example.in -------------------------------------------------------------------------------- /tests/fixtures/mailgun-example.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/mailgun-example.out -------------------------------------------------------------------------------- /tests/fixtures/max-timeout.in: -------------------------------------------------------------------------------- 1 | curl --max-timeout 5 https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/max-timeout.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/max-timeout.out -------------------------------------------------------------------------------- /tests/fixtures/missing-url-scheme.in: -------------------------------------------------------------------------------- 1 | curl -X POST -d 'foo=bar' example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/missing-url-scheme.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/missing-url-scheme.out -------------------------------------------------------------------------------- /tests/fixtures/post-json.in: -------------------------------------------------------------------------------- 1 | curl -X POST -d '{"foo":"bar"}' https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/post-json.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/post-json.out -------------------------------------------------------------------------------- /tests/fixtures/post-with-data.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/post-with-data.in -------------------------------------------------------------------------------- /tests/fixtures/post-with-data.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/post-with-data.out -------------------------------------------------------------------------------- /tests/fixtures/post-with-form-data.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/post-with-form-data.in -------------------------------------------------------------------------------- /tests/fixtures/post-with-form-data.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/post-with-form-data.out -------------------------------------------------------------------------------- /tests/fixtures/put-with-data.in: -------------------------------------------------------------------------------- 1 | curl -X PUT -d 'foo=bar&baz=qui' https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/put-with-data.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/put-with-data.out -------------------------------------------------------------------------------- /tests/fixtures/raw-data-mixed.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/raw-data-mixed.in -------------------------------------------------------------------------------- /tests/fixtures/raw-data-mixed.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/raw-data-mixed.out -------------------------------------------------------------------------------- /tests/fixtures/request-with-data.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/request-with-data.in -------------------------------------------------------------------------------- /tests/fixtures/request-with-data.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/request-with-data.out -------------------------------------------------------------------------------- /tests/fixtures/request-with-form-data.in: -------------------------------------------------------------------------------- 1 | curl -H 'Content-Type: multipart/form-data' -F 'foo=bar' https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/request-with-form-data.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/request-with-form-data.out -------------------------------------------------------------------------------- /tests/fixtures/stripe-example.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/stripe-example.in -------------------------------------------------------------------------------- /tests/fixtures/stripe-example.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/stripe-example.out -------------------------------------------------------------------------------- /tests/fixtures/stripe-query-params.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/stripe-query-params.in -------------------------------------------------------------------------------- /tests/fixtures/stripe-query-params.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/stripe-query-params.out -------------------------------------------------------------------------------- /tests/fixtures/with-cert-and-key.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-cert-and-key.in -------------------------------------------------------------------------------- /tests/fixtures/with-cert-and-key.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-cert-and-key.out -------------------------------------------------------------------------------- /tests/fixtures/with-cert-path-and-password.in: -------------------------------------------------------------------------------- 1 | curl -E /path/to/cert:password https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/with-cert-path-and-password.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-cert-path-and-password.out -------------------------------------------------------------------------------- /tests/fixtures/with-cert-path-only.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-cert-path-only.in -------------------------------------------------------------------------------- /tests/fixtures/with-cert-path-only.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-cert-path-only.out -------------------------------------------------------------------------------- /tests/fixtures/with-collapsable-headers.in: -------------------------------------------------------------------------------- 1 | curl -H 'Accept: application/json' https://example.com 2 | -------------------------------------------------------------------------------- /tests/fixtures/with-collapsable-headers.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-collapsable-headers.out -------------------------------------------------------------------------------- /tests/fixtures/with-compressed-option.in: -------------------------------------------------------------------------------- 1 | curl -H 'Accept: application/json' https://example.com --compressed 2 | -------------------------------------------------------------------------------- /tests/fixtures/with-compressed-option.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-compressed-option.out -------------------------------------------------------------------------------- /tests/fixtures/with-headers.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-headers.in -------------------------------------------------------------------------------- /tests/fixtures/with-headers.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-headers.out -------------------------------------------------------------------------------- /tests/fixtures/with-insecure-k-option.in: -------------------------------------------------------------------------------- 1 | curl -H 'Accept: application/json' https://example.com -k 2 | -------------------------------------------------------------------------------- /tests/fixtures/with-insecure-k-option.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-insecure-k-option.out -------------------------------------------------------------------------------- /tests/fixtures/with-insecure-option.in: -------------------------------------------------------------------------------- 1 | curl -H 'Accept: application/json' https://example.com --insecure 2 | -------------------------------------------------------------------------------- /tests/fixtures/with-insecure-option.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-insecure-option.out -------------------------------------------------------------------------------- /tests/fixtures/with-query-string.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-query-string.in -------------------------------------------------------------------------------- /tests/fixtures/with-query-string.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-query-string.out -------------------------------------------------------------------------------- /tests/fixtures/with-raw-data.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-raw-data.in -------------------------------------------------------------------------------- /tests/fixtures/with-raw-data.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-shift/curl-converter/HEAD/tests/fixtures/with-raw-data.out --------------------------------------------------------------------------------