orisai / vfs
Emulate file system with plain PHP
Installs: 5 235
Dependents: 3
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 7
Open Issues: 0
Requires
- php: 7.4 - 8.3
- orisai/exceptions: ^1.0.0
- orisai/stream-wrapper-contracts: ^1.0.0
- symfony/polyfill-php80: ^1.26
Requires (Dev)
- brianium/paratest: ^6.3.0
- infection/infection: ^0.26.0|^0.27.0|^0.28.0|^0.29.0
- orisai/coding-standard: ^3.0.0
- phpstan/extension-installer: ^1.0.0
- phpstan/phpstan: ^1.0.0
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-phpunit: ^1.0.0
- phpstan/phpstan-strict-rules: ^1.0.0
- phpunit/phpunit: ^9.5.0
- staabm/annotate-pull-request-from-checkstyle: ^1.7.0
Suggests
- ext-posix: For permissions support - GID and UID
This package is auto-updated.
Last update: 2024-11-21 11:35:42 UTC
README
Virtual File System
Emulate file system with plain PHP
📄 Check out our documentation.
💸 If you like Orisai, please make a donation. Thank you!
This package is remake of php-vfs from michael-donat. Thank you, Michael!
use Orisai\VFS\VFS; // Register VFS protocol $scheme = VFS::register(); // Write into virtual file file_put_contents("$scheme://file", 'content'); // Read content of virtual file $content = file_get_contents("$scheme://file"); // Unregister protocol, delete the virtual filesystem VFS::unregister($scheme);