PHPackages                             php-http/httplug-stream-wrapper - 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. php-http/httplug-stream-wrapper

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

php-http/httplug-stream-wrapper
===============================

A stream wrapper that injects a HTTPlug client for streams

119PHP

Since Sep 21Pushed 5y ago3 watchersCompare

[ Source](https://github.com/php-http/httplug-stream-wrapper)[ Packagist](https://packagist.org/packages/php-http/httplug-stream-wrapper)[ RSS](/packages/php-http-httplug-stream-wrapper/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Abandoned
=========

[](#abandoned)

To our knowledge, this repository is unused. We keep it here in case it is useful for anyone, but the code is not maintained.

Stream wrapper
==============

[](#stream-wrapper)

[![Latest Version](https://camo.githubusercontent.com/4cede2c0a53ff73c7ad86c4412233f66e77a0045e212ccc6057955038310a64b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7068702d687474702f687474706c75672d73747265616d2d777261707065722e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-http/httplug-stream-wrapper/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/d50f2414b7f2c84b8a214f62e11cd0a758b52f2ad29aa1c013f7ac5031202db3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d687474702f687474706c75672d73747265616d2d777261707065722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/php-http/httplug-stream-wrapper)[![Code Coverage](https://camo.githubusercontent.com/092c9a0350d3c2f6dd17acdc8c4859c720cdf475fc6bd758753a901cfb5250c5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068702d687474702f687474706c75672d73747265616d2d777261707065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/httplug-stream-wrapper)[![Quality Score](https://camo.githubusercontent.com/55cb54114725f73c7bc08978732742b42384917c0142c3a107f017eaeafa7b63/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d687474702f687474706c75672d73747265616d2d777261707065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/httplug-stream-wrapper)[![Total Downloads](https://camo.githubusercontent.com/068de62023372f05f2bb3c8cf1adc21419a53ede913754bb3c96f459c468c42d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d687474702f687474706c75672d73747265616d2d777261707065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-http/httplug-stream-wrapper)

**Convert uses of fopen and file\_get\_contents to HTTPlug requests.**

Disclaimer
----------

[](#disclaimer)

**Warning 1**: There is an increased risk for problems because of how deeply the stream wrapper touches into the PHP core. Internally we use `stream_wrapper_unregister` and `stream_wrapper_register`.

**Warning 2**: Instead of using the stream wrapper you should should try to port libraries to use Httplug for a more robust solution.

Install
-------

[](#install)

Via Composer

```
$ composer require php-http/httplug-stream-wrapper
```

Documentation
-------------

[](#documentation)

```
$httpClient = HttpClientDiscovery::find();
StreamWrapper::enable($httpClient);
```

Please see the [official documentation](http://docs.php-http.org/en/latest).

Testing
-------

[](#testing)

Then the test suite:

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).

Security
--------

[](#security)

If you discover any security related issues, please contact us at .

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://avatars.githubusercontent.com/u/76576?v=4)[David Buchmann](/maintainers/dbu)[@dbu](https://github.com/dbu)

![](https://www.gravatar.com/avatar/3fb6e13a139230893f783118651540d3d057979fd726fefd135b1b397873010e?d=identicon)[php-http](/maintainers/php-http)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (6 commits)")[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (2 commits)")

### Embed Badge

![Health badge](/badges/php-http-httplug-stream-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/php-http-httplug-stream-wrapper/health.svg)](https://phpackages.com/packages/php-http-httplug-stream-wrapper)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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