PHPackages                             dvdoug/stringstream - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dvdoug/stringstream

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

dvdoug/stringstream
===================

Stream wrapper for strings. Basically, like php://temp except that you can have multiple streams

v1.1.3(6y ago)48.4k3[1 PRs](https://github.com/dvdoug/StringStream/pulls)MITPHPPHP &gt;=7.1

Since Feb 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dvdoug/StringStream)[ Packagist](https://packagist.org/packages/dvdoug/stringstream)[ Docs](https://github.com/dvdoug/StringStream)[ RSS](/packages/dvdoug-stringstream/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

StringStream
============

[](#stringstream)

Stream wrapper for strings. Basically, like php://temp except that you can have multiple streams at once, and can pre-initialise the contents. This was never tested by my past self, php://temp is in fact not shared between handles and this package was never needed. Just use php://temp

[![Build Status](https://camo.githubusercontent.com/4d00115d793fb82575a249cb95e7fba5b0b27338dfd70b11636d641a5ea2db3f/68747470733a2f2f7472617669732d63692e6f72672f6476646f75672f537472696e6753747265616d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dvdoug/StringStream)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5748121f389c21a541e42754d21e0ca5fe30bc6455f133095402c4959dfb815f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6476646f75672f537472696e6753747265616d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dvdoug/StringStream/?branch=master)[![Download count](https://camo.githubusercontent.com/2878471c9f33190fb41abdf6fcb113dc0dcccc871a9dfd3d69af7461a2fc6076/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6476646f75672f737472696e6773747265616d2e737667)](https://packagist.org/packages/dvdoug/stringstream)[![Download count](https://camo.githubusercontent.com/f8cec878b65825686b1b0e66a3b5b215817bca926e59dbc820ac24da5573ef54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6476646f75672f737472696e6773747265616d2e737667)](https://packagist.org/packages/dvdoug/stringstream)

Usage
-----

[](#usage)

```
stream_wrapper_register('string', '\DVDoug\StringStream\StringStream');

$handle = fopen('string://foobar', 'r+');
$contents = '';
while (!feof($handle)) {
  $contents .= fread($handle, 8192);
}
fclose($handle);
```

License
-------

[](#license)

StringStream is MIT-licensed.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~619 days

Total

5

Last Release

2363d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.0

v1.1.3PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bbb34b74a2b5e65b0c67011c6c5339eedc29e6b95d46428ad1044f021f0bbab?d=identicon)[dvdoug](/maintainers/dvdoug)

---

Top Contributors

[![dvdoug](https://avatars.githubusercontent.com/u/1571110?v=4)](https://github.com/dvdoug "dvdoug (76 commits)")

---

Tags

streamstring

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/dvdoug-stringstream/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[react/stream

Event-driven readable and writable streams for non-blocking I/O in ReactPHP

689126.8M194](/packages/react-stream)[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)

PHPackages © 2026

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