dvdoug/stringstream 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dvdoug/stringstream

最新稳定版本:v1.1.3

Composer 安装命令:

composer require dvdoug/stringstream

包简介

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

README 文档

README

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 Scrutinizer Code Quality Download count Download count

Usage

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

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

License

StringStream is MIT-licensed.

统计信息

  • 总下载量: 8.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-12