2017 © Pedro Peláez
 

library guzzle-socket-handler

Unix socket handler for guzzle 6

image

psrebniak/guzzle-socket-handler

Unix socket handler for guzzle 6

  • Sunday, April 23, 2017
  • by psrebniak
  • Repository
  • 1 Watchers
  • 2 Stars
  • 100 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

Guzzle Socket Handler Build Status Code Climate

Warningbr/ This package is deprecated since cURL 7.40.0.br/ Use curl_setopt with CURLOPT_UNIX_SOCKET_PATH option instead of this package (available in cURL 7.40.0 (PHP 7.0.7)), (*1)

Unix socket handler for guzzle 6., (*2)

Installation

composer require psrebniak/guzzle-socket-handler, (*3)

Usage:

\GuzzleHttp\Client([
    'handler' => new \psrebniak\GuzzleSocketHandler\SocketHandlerFactory(
        $path
        [, $domain = AF_UNIX 
        [, $type = SOCK_STREAM 
        [, $protocol = SOL_SOCKET
        ]]]
    )
]); 

Request options (from \psrebniak\GuzzleSocketHandler\SocketOptions)

  • SOCKET_TIMEOUT - alias of RequestOptions::CONNECT_TIMEOUT
  • SOCKET_DEBUG - alias of RequestOptions::DEBUG

Done:

  • sending JSON ($options[RequestOptions::JSON] key)
  • sending form params ($options[RequestOptions::FORM_PARAMS] key)
  • sending multipart ($options[RequestOptions::multipart] key)
  • tracking redirects ($options[RequestOptions::ALLOW_REDIRECTS] key)
  • timeout ($options[RequestOptions::CONNECT_TIMEOUT] key)
  • Http Authentication ($options[RequestOptions::AUTH] key)

The Versions

23/04 2017

dev-master

9999999-dev https://github.com/psrebniak/guzzle-socket-handler

Unix socket handler for guzzle 6

  Sources   Download

MIT

The Requires

 

The Development Requires

by Piotr Srebniak

guzzle socket

23/04 2017

0.0.3

0.0.3.0 https://github.com/psrebniak/guzzle-socket-handler

Unix socket handler for guzzle 6

  Sources   Download

MIT

The Requires

 

The Development Requires

by Piotr Srebniak

guzzle socket

16/02 2017

0.0.2

0.0.2.0 https://github.com/psrebniak/guzzle-socket-handler

Unix socket handler for guzzle 6

  Sources   Download

MIT

The Requires

 

The Development Requires

by Piotr Srebniak

guzzle socket

15/02 2017

0.0.1

0.0.1.0 https://github.com/psrebniak/guzzle-socket-handler

Unix socket handler for guzzle 6

  Sources   Download

MIT

The Requires

 

The Development Requires

by Piotr Srebniak

guzzle socket