2017 © Pedro Peláez
 

library jc-request

Another Guzzle wrapper

image

jaredchu/jc-request

Another Guzzle wrapper

  • Wednesday, May 30, 2018
  • by jaredchu
  • Repository
  • 1 Watchers
  • 4 Stars
  • 2,130 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 20 % Grown

The README.md

JCRequest

Another Guzzle wrapper, (*1)

Packagist Packagist Travis Scrutinizer Codecov Packagist FOSSA Status, (*2)

Installation

$ composer require jaredchu/jc-request, (*3)

Usage

use JC\HttpClient\JCRequest;

GET

$response = JCRequest::get($url);
echo $response->status();
echo $response->body();
var_dump($response->json());

POST

$response = JCRequest::post($url, $params, $headers);
echo $response->status();
echo $response->body();
var_dump($response->json());

RESTful

$response = JCRequest::post($url, json_encode($params), $headers);
var_dump($response->json());

Basic Auth

$response = JCRequest::get($url, $params, $headers, [
  'auth' => [$userName, $passwd]
]);

Request timeout

$response = JCRequest::get($url, $params, $headers, [
  'connect_timeout' => 2,
  'timeout' => 2
]);

Contributing

  1. Fork it!
  2. Create your feature branch: $ git checkout -b feature/your-new-feature
  3. Commit your changes: $ git commit -am 'Add some feature'
  4. Push to the branch: $ git push origin feature/your-new-feature
  5. Submit a pull request.

License

MIT License, (*4)

FOSSA Status, (*5)

The Versions

30/05 2018

dev-master

9999999-dev

Another Guzzle wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

http request client guzzle

18/09 2017

v1.2.0

1.2.0.0

Another Guzzle wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

http request client guzzle

15/09 2017

v1.1.0

1.1.0.0

Another Guzzle wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

http request client guzzle

14/09 2017

v1.0.2

1.0.2.0

Another Guzzle wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

http request client guzzle

18/08 2017

v1.0.1

1.0.1.0

Another Guzzle wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

http request client guzzle

02/06 2017

v1.0

1.0.0.0

Another Guzzle wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

http request client guzzle