arnapou / stream
v1.3
2024-04-06 23:52 UTC
Requires
- php: ~8.3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.52
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/php-code-coverage: ^11.0
- phpunit/phpunit: ^11.0
- psr/http-message: ^2.0
Suggests
- psr/http-message: Necessary to use StreamInterface adapters.
README
此库允许您使用 Input
或 Output
基本接口包装流。
安装
composer require arnapou/stream
packagist 👉️ arnapou/stream
输入
您要“读取”的流。
namespace Arnapou\Stream\Input;
interface Input
{
public function open(): void;
public function read(): string;
public function close(): void;
}
输出
您要“写入”的流。
namespace Arnapou\Stream\Output;
interface Output
{
public function write(string $data): void;
}
PHP 版本
日期 | 引用 | 8.3 |
---|---|---|
23/01/2024 | 1.x, main | × |