PHP code example of covex-nn / joos-stream

1. Go to this page and download the library: Download covex-nn/joos-stream library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

covex-nn / joos-stream example snippets




  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");