covex-nn / joos-stream
PHP stream wrapper, transactional virtual file system
Installs: 1 818
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
Requires (Dev)
- apnet/coding-standard: ~1.0
- covex-nn/phpqatools: ~1.3
This package is not auto-updated.
Last update: 2022-02-01 12:23:18 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.