covex-nn / vfs
PHP stream wrapper, transactional virtual file system
Installs: 596
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/covex-nn/vfs
Requires
- php: ^7.1
- symfony/filesystem: ^3.4 || ^4.0
This package is not auto-updated.
Last update: 2025-10-12 10:49:38 UTC
README
Example
<?php 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"); ?>