• Stars
    star
    77
  • Rank 401,866 (Top 9 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 9 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Socket HTTP Client

Socket Client for PHP HTTP

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

The socket client use the stream extension from PHP, which is integrated into the core.

Features

  • TCP Socket Domain (tcp://hostname:port)
  • UNIX Socket Domain (unix:///path/to/socket.sock)
  • TLS / SSL Encyrption
  • Client Certificate (only for php > 5.6)

Installation and Usage

Read the documentation at http://docs.php-http.org/en/latest/clients/socket-client.html

Testing

First launch the http server:

$ ./vendor/bin/http_test_server > /dev/null 2>&1 &

Then generate ssh certificates:

$ composer gen-ssl

Note: If you are running this on macOS and get the following error: "Error opening CA Private Key privkey.pem", check this file.

Now run the test suite:

$ composer test

Contributing

Please see our contributing guide.

Security

If you discover any security related issues, please contact us at [email protected].

License

The MIT License (MIT). Please see License File for more information.

More Repositories

1

httplug

HTTPlug, the HTTP client abstraction for PHP
PHP
2,527
star
2

promise

Promise used for asynchronous HTTP requests
PHP
1,759
star
3

guzzle6-adapter

Guzzle 6 HTTP adapter
PHP
1,375
star
4

message-factory

Abandoned: Httplug Factory interfaces for PSR-7 HTTP Message
PHP
1,353
star
5

message

HTTP Message related tools
PHP
1,257
star
6

discovery

Finds installed clients and message factories
PHP
1,224
star
7

client-common

Common HTTP Client implementations and tools for HTTPlug
PHP
976
star
8

curl-client

cURL client
PHP
432
star
9

HttplugBundle

Symfony Framework Integration for HTTPlug
PHP
381
star
10

logger-plugin

PSR-3 Logger plugin for HTTPlug
PHP
283
star
11

stopwatch-plugin

Symfony Stopwatch plugin for HTTPlug
PHP
261
star
12

cache-plugin

PSR-6 Cache plugin for HTTPlug
PHP
248
star
13

multipart-stream-builder

Build a multipart stream independently form any PSR7 Stream implementation
PHP
246
star
14

guzzle7-adapter

Guzzle 7 adapter
PHP
68
star
15

mock-client

Mock HTTP client
PHP
67
star
16

psr7-integration-tests

PHP
40
star
17

httplug-flex-pack

A "pack" recipe for Symfony flex
39
star
18

documentation

Documentation for PHP-HTTP including HTTPlug
Python
23
star
19

react-adapter

React HTTP Adapter
PHP
19
star
20

vcr-plugin

Record your test suite's HTTP interactions and replay them during future test runs.
PHP
19
star
21

client-integration-tests

HTTP client integration tests
PHP
16
star
22

awesome-http

A curated list of amazingly awesome PHP libraries, resources and shiny things related to HTTP
14
star
23

laravel-httplug

Laravel package for HTTPlug
PHP
12
star
24

plugins

[DEPRECATED] Plugin client, decorate HTTP client with middlewares
PHP
11
star
25

guzzle5-adapter

Guzzle 5 HTTP adapter
PHP
10
star
26

artax-adapter

Artax HTTP Adapter
PHP
5
star
27

cakephp-adapter

CakePHP Adapter for HTTPlug
PHP
5
star
28

demo-library

PHP
3
star
29

httplug-async

[DEPRECATED] HTTPlug Async, the HTTP asynchronous client abstraction for PHP http://httplug.io
PHP
3
star
30

boilerplate

Boilerplate for packages
PHP
3
star
31

buzz-adapter

Buzz HTTP adapter
PHP
3
star
32

httplug.github.io

HTTPlug website
JavaScript
3
star
33

zend-adapter

Zend Adapter for HTTPlug
PHP
2
star
34

.github

Default community health files
2
star
35

utils

[DEPRECATED] HTTP Client Utilities
PHP
2
star
36

throttle-plugin

PHP-HTTP plugin for throttling/rate limiting with the symfony/rate-limiter
PHP
2
star
37

random-host-plugin

Client-side round robin load balancer plugin for HTTPlug
PHP
1
star
38

helper

[DEPRECATED] Helper classes for HTTP related data
PHP
1
star
39

adapter-integration-tests

[DEPRECATED] Please use https://github.com/php-http/client-integration-tests
PHP
1
star
40

httplug-stream-wrapper

PHP
1
star
41

api.php-http.org

API documentation for PHP HTTP projects
HTML
1
star