PHPackages                             sanmai/hoa-protocol - 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. sanmai/hoa-protocol

ActiveLibrary

sanmai/hoa-protocol
===================

The Hoa\\Protocol library.

1.25.1(9mo ago)0361.4k—2%32BSD-3-ClausePHPPHP ^8.2

Since Sep 13Pushed 9mo agoCompare

[ Source](https://github.com/sanmai/Protocol)[ Packagist](https://packagist.org/packages/sanmai/hoa-protocol)[ GitHub Sponsors](https://github.com/sanmai)[ RSS](/packages/sanmai-hoa-protocol/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (7)Used By (2)

[![Latest Stable Version](https://camo.githubusercontent.com/e6a5a18a14a74b11c1300d51e80a78de4ea93335ff503cfd5b1e569be0b38b43/68747470733a2f2f706f7365722e707567782e6f72672f73616e6d61692f686f612d70726f746f636f6c2f762f737461626c65)](https://packagist.org/packages/sanmai/hoa-protocol)[![Total Downloads](https://camo.githubusercontent.com/69bb17164984f6db7821922e24cafdd688d01fedf33f5fddc3ef17947a2a2332/68747470733a2f2f706f7365722e707567782e6f72672f73616e6d61692f686f612d70726f746f636f6c2f646f776e6c6f616473)](https://packagist.org/packages/sanmai/hoa-protocol)

Hoa\\Protocol
=============

[](#hoaprotocol)

This library provides the `hoa://` protocol, which is a way to abstract resource accesses. [Learn more](https://central.hoa-project.net/Documentation/Library/Protocol).

This particular fork aims to solve some deficiencies of the original library, while otherwise being a feature match to the original package. Specifically, this fork comes without the global `resolve()` function, which is known to cause a conflict with some versions of Laravel.

This library requires PHP 8.2+ and is routinely tested. Please report any issues.

Installation
------------

[](#installation)

With [Composer](https://getcomposer.org/), to include this library into your dependencies, you need to...

```
composer require sanmai/hoa-protocol
```

Testing
-------

[](#testing)

Before running the test suites, the development dependencies must be installed:

```
composer install
```

Then, to run all the test suites:

```
vendor/bin/phpunit
```

Or use the composer script:

```
composer test
```

Code Style
----------

[](#code-style)

This project uses PHP CS Fixer to maintain consistent code style:

```
# Check code style
composer cs:check

# Fix code style automatically
composer cs:fix
```

Static Analysis
---------------

[](#static-analysis)

This project uses PHPStan with custom rules for static analysis, running in an isolated environment to avoid Hoa dependency conflicts:

```
composer phpstan
```

**Note**: PHPStan runs in an isolated environment using `bamarni/composer-bin-plugin` to avoid conflicts between the project's required Hoa v2.x libraries and PHPStan's bundled Hoa v1.x dependencies.

License
-------

[](#license)

Hoa is under the New BSD License (BSD-3-Clause). Please, see [`LICENSE`](https://hoa-project.net/LICENSE) for details.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance55

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 51% 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 ~713 days

Total

4

Last Release

297d ago

PHP version history (3 changes)1.17.01.14PHP ^7.0

1.21PHP &gt;=7.0

1.25PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![Hywan](https://avatars.githubusercontent.com/u/946104?v=4)](https://github.com/Hywan "Hywan (49 commits)")[![sanmai](https://avatars.githubusercontent.com/u/139488?v=4)](https://github.com/sanmai "sanmai (42 commits)")[![Grummfy](https://avatars.githubusercontent.com/u/668804?v=4)](https://github.com/Grummfy "Grummfy (2 commits)")[![vonglasow](https://avatars.githubusercontent.com/u/1275202?v=4)](https://github.com/vonglasow "vonglasow (2 commits)")[![Metalaka](https://avatars.githubusercontent.com/u/5406767?v=4)](https://github.com/Metalaka "Metalaka (1 commits)")

---

Tags

streamlibraryprotocolwrapperresource

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sanmai-hoa-protocol/health.svg)

```
[![Health](https://phpackages.com/badges/sanmai-hoa-protocol/health.svg)](https://phpackages.com/packages/sanmai-hoa-protocol)
```

###  Alternatives

[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33437.2k17](/packages/trafficcophp-bytebuffer)

PHPackages © 2026

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