covex-nn/joos-stream

PHP stream wrapper, transactional virtual file system

Installs: 1 237

Dependents: 1

Watchers: 1

Language: PHP

4.1.1 2013-11-29 21:29 UTC

README

Example

<?php

  JooS\Stream\Wrapper_FS::register("any-vfs-protocol", __DIR__);

  file_put_contents("any-vfs-protocol://" . basename(__FILE__), "hahaha");
  unlink("any-vfs-protocol://" . basename(__FILE__));

  // JooS\Stream\Wrapper_FS::commit("any-vfs-protocol");
  // echo file_exists(__FILE__) ? "yes" : "no";

  JooS\Stream\Wrapper_FS::unregister("any-vfs-protocol");

?>

Read more

Please visit wiki.