Skip to content
/ vfs Public
forked from michael-donat/php-vfs

[WIP] Emulate file system with plain PHP

License

Notifications You must be signed in to change notification settings

orisai/vfs

 
 

Repository files navigation

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

Releases

No releases published

Sponsor this project

 

Languages

  • PHP 97.6%
  • Makefile 2.4%