pear/stream_var 问题修复 & 功能扩展

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

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

pear/stream_var

最新稳定版本:v2.0.0

Composer 安装命令:

composer require pear/stream_var

包简介

Allow stream based access to any variable.

README 文档

README

Allow stream based access to any variable.

Stream_Var can be registered as a stream with stream_register_wrapper() and allows stream based acces to variables in any scope.

Arrays are treated as directories, so it is possible to replace temporary directories and files in your application with variables.

Usage

One example use case for Stream_Var is temporarily modifying data for code that only uses file functions:

<?php
stream_wrapper_register('var', 'Stream_Var');

$GLOBALS['somefile'] = "blah blah blah\n";

echo file_get_contents('var://GLOBALS/somefile');
//outputs "blah blah blah\n"
?>

Installation

$ composer require pear/stream_var

Links

Homepage
http://pear.php.net/package/Stream_Var
Bug tracker
http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Stream_Var
Documentation
http://pear.php.net/manual/en/package.streams.stream-var.php
Unit test status

https://travis-ci.org/pear/Stream_Var

https://travis-ci.org/pear/Stream_Var.svg?branch=master
Packagist
https://packagist.org/packages/pear/stream_var

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 11
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-12-11