antibiotics11/stream
Composer 安装命令:
composer require antibiotics11/stream
包简介
IO Stream classes mimicking java.io
README 文档
README
IO Stream classes mimicking java.io
use antibiotics11\Stream\FileOutputStream; $helloWorldFile = new FileOutputStream(name: "hello_world.txt", append: true); for ($i = 0; $i < 10; $i++) { $helloWorldFile->write(bytes: "Hello, World!\r\n"); } $helloWorldFile->flush(); $helloWorldFile->close();
Classes
- Stream\InputStream
- Stream\OutputStream
- Stream\FileInputStream
- Stream\FileOutputStream
- Stream\BufferedOutputStream
Stream\StandardInputStream[Deprecated]Stream\StandardOutputStream[Deprecated]
Exceptions
- Stream\Exception\IOException
- Stream\Exception\FileNotFoundException
Notice
- This project is experimental and does not guarantee the same functionality as java.io.
- Some features may be unstable due to mimicking method overloading with optional parameters.
Requirements
- PHP >= 8.3
- jetbrains/phpstorm-attributes >= 1.0
Installation
composer require antibiotics11/stream:dev-main
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-29