承接 piotrpress/streamer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

piotrpress/streamer

Composer 安装命令:

composer require piotrpress/streamer

包简介

This library is a custom PHP Stream Wrapper, which provides write/read operations and stores the data in the memory.

README 文档

README

Tests

This library is a custom PHP Stream Wrapper, which provides write/read operations and stores the data in the memory.

NOTE: It is similar to php:// memory, with the difference that is reusable, i.e. after the stream has been closed you can reopen it and the written data are still there, similar to regular file. Take a look at example of usage below.

Installation

composer require piotrpress/streamer

Usage

require __DIR__ . '/vendor/autoload.php';

PiotrPress\Streamer::register( 'virtual' );

file_put_contents( 'virtual://test', 'Test data' );
echo file_get_contents( 'virtual://test' );

Supports

  • fopen() modes: r, r+, w, w+, a, a+
  • fwrite(), fputs() etc.
  • fread(), fgets() etc.
  • file_get_contents(), file_put_contents()
  • feof(), fseek(), ftell(), rewind()
  • ftruncate()
  • filesize()
  • rename()
  • unlink()

Requirements

PHP >= 7.4 version.

License

GPL3.0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固