PHPackages                             sharkydog/http - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. sharkydog/http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sharkydog/http
==============

HTTP/Websocket server and client

v1.3.6(1mo ago)0523MITPHPPHP &gt;=7.4

Since Oct 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/sharkydog/http)[ Packagist](https://packagist.org/packages/sharkydog/http)[ RSS](/packages/sharkydog-http/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (10)Versions (17)Used By (3)

HTTP/Websocket server and client
================================

[](#httpwebsocket-server-and-client)

A small HTTP server and client with websockets, intended for services in a local network, based on [ReactPHP](https://reactphp.org/) and a fork of [ratchet/rfc6455](https://github.com/ratchetphp/RFC6455).

> ## ⚠️ Do NOT expose this to the Wild Wild Web!!!
>
> [](#warning-do-not-expose-this-to-the-wild-wild-web)
>
> ### It is NOT and probably never will be secure enough.
>
> [](#it-is-not-and-probably-never-will-be-secure-enough)
>
> ### A simple DoS attack will bring it down, maybe the host machine too.
>
> [](#a-simple-dos-attack-will-bring-it-down-maybe-the-host-machine-too)
>
> Some level of protection may be created through filters. A "contrack" filter is in "an idea" stage, to provide facility for other filters and handlers to track connections, set timeouts and such.

Documentation is not yet written, there is a lot to write and will land in the [Wiki](https://github.com/sharkydog/http/wiki) eventually.

Until then, there is a [quick start example](https://github.com/sharkydog/http/blob/main/examples/01-server-quickstart.php) for the server.

- new (13.10.24): [server-handlers and promise](https://github.com/sharkydog/http/blob/main/examples/02-server-handlers.php)
- new (16.10.24): [streams](https://github.com/sharkydog/http/blob/main/examples/03-server-streams.php)
- new (17.10.24): [filters](https://github.com/sharkydog/http/blob/main/examples/04-server-filters.php)
- new (18.10.24): [access control](https://github.com/sharkydog/http/blob/main/examples/05-server-access-control.php)
- new (20.10.24): [client](https://github.com/sharkydog/http/blob/main/examples/06-client.php)
- new (22.10.24): websocket [server](https://github.com/sharkydog/http/blob/main/examples/07-websocket-server.php), [client](https://github.com/sharkydog/http/blob/main/examples/08-websocket-client.php)

Examples should be looked in the `main` branch, tagged releases may not have them up to date - [main/examples](https://github.com/sharkydog/http/tree/main/examples).

And there is always the option to go for a treasure hunt through the source. And I will be happy to answer questions and provide assistance.

In short, some key features:

- HTTP/1.1, Keep-Alive, Chunked transfer encoding
- simple routes - error code, text response, callback, static files or custom handler
- Streams for request and response bodies
- Multipart stream and parser
- Byte range stream
- Promised response
- Connection, request, response filters
- Access control, based on routes, IPv4 address/cidr and basic authorization
- Websocket protocol handler (server)
- HTTP client
- Websocket client

Most of these however are not enabled by default and will need to be "used" in handlers. See examples.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~125 days

Total

16

Last Release

52d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d54985ab7d672df15e1ac9f278a842cddb25502a1bda7693e455680dbaa782b4?d=identicon)[SharkyDog](/maintainers/SharkyDog)

---

Top Contributors

[![sharkydog](https://avatars.githubusercontent.com/u/6613422?v=4)](https://github.com/sharkydog "sharkydog (2 commits)")

### Embed Badge

![Health badge](/badges/sharkydog-http/health.svg)

```
[![Health](https://phpackages.com/badges/sharkydog-http/health.svg)](https://phpackages.com/packages/sharkydog-http)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M23.9k](/packages/friendsofphp-php-cs-fixer)[cboden/ratchet

PHP WebSocket library

6.4k22.0M252](/packages/cboden-ratchet)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78127.2M452](/packages/react-http)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136400.8k14](/packages/rector-rector-src)[gos/web-socket-bundle

Symfony Web Socket Bundle

6102.2M8](/packages/gos-web-socket-bundle)[clue/docker-react

Async, event-driven access to the Docker Engine API, built on top of ReactPHP.

112160.9k1](/packages/clue-docker-react)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
