GithubHelp home page GithubHelp logo

isabella232 / stream_var Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pear/stream_var

0.0 0.0 0.0 24 KB

Allow stream based access to any variable.

Home Page: http://pear.php.net/package/Stream_Var

PHP 100.00%

stream_var's Introduction

Stream_Var

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
require_once 'Stream/Var.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

PEAR

$ pear install stream_var

Composer

$ composer require pear/stream_var
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

image

Packagist

https://packagist.org/packages/pear/stream_var

stream_var's People

Contributors

cweiske avatar till avatar clockwerx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.