Skip to content

Repository files navigation

FileWaiter-ByteString

Latest Version on PackagistSoftware LicenseBuild StatusCoverage StatusQuality ScoreTotal Downloads

Byte string file adapter for FileWaiter.

Install

Via Composer

$ composer require stadly/file-waiter-bytestring

Usage

useStadly\FileWaiter\Adapter\ByteString;
useStadly\FileWaiter\File;
useStadly\FileWaiter\Waiter;
$content = 'FILE CONTENT STORED AS STRING';
$streamFactory = new \GuzzleHttp\Psr7\HttpFactory(); // Any PSR-17 compatible stream factory.$file = newFile(newByteString($content, $streamFactory));
$responseFactory = new \GuzzleHttp\Psr7\HttpFactory(); // Any PSR-17 compatible response factory.$waiter = newWaiter($file, $responseFactory);
// Serve the byte string using FileWaiter.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

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

Credits

License

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

About

Byte string file adapter for FileWaiter.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages