2017 © Pedro Peláez
 

library incoming-curl

Make curl command line from incoming request

image

osadchyi-s/incoming-curl

Make curl command line from incoming request

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Incoming Curl

Latest Version Total Downloads, (*1)

This package for creating curl command line from incoming request data., (*2)

Install

Via Composer, (*3)

``` bash $ composer require osadchyi-s/incoming-curl, (*4)


## Usage Make current incoming curl from global data ``` php $curlLine = IncomingCurl::makeCurlFromGlobals();

Make curl from custom data ``` php $IC = new IncomingCurl(); $IC->setUrl('http://example'); $IC->setBody(json_encode(['test'=>1])); $IC->setHeaders([ [ 'Content-Type'=> ['appliation/json'] ] ]); $IC->setMethod('GET');, (*5)

$curlLine = $IC->makeCurlCommandLine(); ```, (*6)

Credits

License

The GPL3 License. Please see License File for more information., (*7)

The Versions

02/11 2016

dev-develop

dev-develop https://github.com/osadchyi-s/incoming-curl

Make curl command line from incoming request

  Sources   Download

GPL3

The Requires

 

curl request

30/10 2016

dev-master

9999999-dev https://github.com/osadchyi-s/incoming-curl

Make curl command line from incoming request

  Sources   Download

GPL3

The Requires

 

curl request

30/10 2016

0.1.0

0.1.0.0 https://github.com/osadchyi-s/incoming-curl

Make curl command line from incoming request

  Sources   Download

GPL3

The Requires

 

The Development Requires

curl request