PHP code example of covex-nn / vfs
1. Go to this page and download the library: Download covex-nn/vfs 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 / vfs example snippets
Covex\Stream\FileSystem::register("any-vfs-protocol", __DIR__);
file_put_contents("any-vfs-protocol://" . basename(__FILE__), "hahaha");
unlink("any-vfs-protocol://" . basename(__FILE__));
// Covex\Stream\FileSystem::commit("any-vfs-protocol");
// echo file_exists(__FILE__) ? "yes" : "no";
Covex\Stream\FileSystem::unregister("any-vfs-protocol");