PHPackages                             stadly/file-waiter-bytestring - 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. stadly/file-waiter-bytestring

ActiveLibrary

stadly/file-waiter-bytestring
=============================

Byte string file adapter for FileWaiter.

v1.0.1(4y ago)1273↓100%1MITPHPPHP &gt;=7.4

Since Sep 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Stadly/FileWaiter-ByteString)[ Packagist](https://packagist.org/packages/stadly/file-waiter-bytestring)[ Docs](https://github.com/Stadly/FileWaiter-ByteString)[ RSS](/packages/stadly-file-waiter-bytestring/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (3)Used By (1)

FileWaiter-ByteString
=====================

[](#filewaiter-bytestring)

[![Latest Version on Packagist](https://camo.githubusercontent.com/191b6177d2d26ddb05e77c0654fca75d7fb50b8d143c65e7c8d845d44069ac97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737461646c792f66696c652d7761697465722d62797465737472696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stadly/file-waiter-bytestring)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8773306c1102249167f6644712cd409c9ee9b41452123e459471b24a6a48aaec/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f537461646c792f46696c655761697465722d42797465537472696e672f6d61696e2e7376673f7374796c653d666c61742d737175617265)](https://app.travis-ci.com/github/Stadly/FileWaiter-ByteString)[![Coverage Status](https://camo.githubusercontent.com/6878e063344e490dfad0c041ac2fffeb0cd4ffd4d4b3ac0c5def100e52d2d108/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f537461646c792f46696c655761697465722d42797465537472696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Stadly/FileWaiter-ByteString/code-structure)[![Quality Score](https://camo.githubusercontent.com/5676b500282c02fdb43943112b722d48d303fcde34e74e06061f25a578215a28/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f537461646c792f46696c655761697465722d42797465537472696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Stadly/FileWaiter-ByteString)[![Total Downloads](https://camo.githubusercontent.com/ae19e65952b0075f9e5a248a36cea3e1a45d429cf19e49b23bf448e57839ee23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737461646c792f66696c652d7761697465722d62797465737472696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stadly/file-waiter-bytestring)

Byte string file adapter for [FileWaiter](https://github.com/Stadly/FileWaiter).

Install
-------

[](#install)

Via Composer

```
$ composer require stadly/file-waiter-bytestring
```

Usage
-----

[](#usage)

```
use Stadly\FileWaiter\Adapter\ByteString;
use Stadly\FileWaiter\File;
use Stadly\FileWaiter\Waiter;

$content = 'FILE CONTENT STORED AS STRING';

$streamFactory = new \GuzzleHttp\Psr7\HttpFactory();        // Any PSR-17 compatible stream factory.
$file = new File(new ByteString($content, $streamFactory));

$responseFactory = new \GuzzleHttp\Psr7\HttpFactory();      // Any PSR-17 compatible response factory.
$waiter = new Waiter($file, $responseFactory);

// Serve the byte string using FileWaiter.
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Magnar Ovedal Myrtveit](https://github.com/Stadly)
- [All Contributors](https://github.com/Stadly/FileWaiter-ByteString/contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

1703d ago

### Community

Maintainers

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

---

Top Contributors

[![Stadly](https://avatars.githubusercontent.com/u/7263579?v=4)](https://github.com/Stadly "Stadly (8 commits)")

---

Tags

phpStadlybyte stringfile waiter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/stadly-file-waiter-bytestring/health.svg)

```
[![Health](https://phpackages.com/badges/stadly-file-waiter-bytestring/health.svg)](https://phpackages.com/packages/stadly-file-waiter-bytestring)
```

###  Alternatives

[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)

PHPackages © 2026

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