PHPackages                             adlawson/vfs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. adlawson/vfs

ActiveLibrary[File &amp; Storage](/categories/file-storage)

adlawson/vfs
============

Virtual file system

0.12.1(10y ago)300433.0k—1.5%19[1 issues](https://github.com/adlawson/php-vfs/issues)[4 PRs](https://github.com/adlawson/php-vfs/pulls)20MITPHPPHP &gt;=5.5

Since Jul 6Pushed 1y ago11 watchersCompare

[ Source](https://github.com/adlawson/php-vfs)[ Packagist](https://packagist.org/packages/adlawson/vfs)[ Docs](https://github.com/adlawson/php-vfs)[ RSS](/packages/adlawson-vfs/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (5)Versions (11)Used By (20)

VFS (Virtual File System)
=========================

[](#vfs-virtual-file-system)

[![Virtual File System](https://camo.githubusercontent.com/18cf3d735a87412b58f328969e9bd2aad4951d159c037565ff43e7cd95f6a8f5/687474703a2f2f6d656469612e67697068792e636f6d2f6d656469612f6436556e77394b65307643464f2f67697068792e676966)](https://camo.githubusercontent.com/18cf3d735a87412b58f328969e9bd2aad4951d159c037565ff43e7cd95f6a8f5/687474703a2f2f6d656469612e67697068792e636f6d2f6d656469612f6436556e77394b65307643464f2f67697068792e676966)

[![Master branch build status](https://camo.githubusercontent.com/6ee0bbd0748539f48c79eec241c525d039d30c804def47da43be84e13b9dc9fb/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f61646c6177736f6e2f7068702d7666732f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/adlawson/php-vfs)[![Published version](https://camo.githubusercontent.com/e90e762ac67087757a161038f5fe0c8bd588754047ea54f592b91fe68591534b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61646c6177736f6e2f7666732e7376673f7374796c653d666c6174)](https://packagist.org/packages/adlawson/vfs)[![PHP ~5.4](https://camo.githubusercontent.com/d17f8501180e9ee65a2404119522314c89cc300ff60ed7f91e9951e43e6d3aab/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e352e342d3838393242462e7376673f7374796c653d666c6174)](http://php.net)[![MIT Licensed](https://camo.githubusercontent.com/bbdfb3a882679fbd8400095a17d49126354569666e66c652a9c0fc3d9b0e3a8f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61646c6177736f6e2f7666732e7376673f7374796c653d666c6174)](LICENSE)

**VFS** is a virtual file system for PHP built using the stream wrapper API. Streams are exposed just as typical `file://` or `http://` streams are to PHP's built-in functions and keywords like `fopen` and `require`. This implementation attempts to stay true to the typical streams, including triggering warnings and handling edge cases appropriately.

It can be installed in whichever way you prefer, but I recommend [Composer](https://packagist.org/packages/adlawson/vfs).

```
{
    "require": {
        "adlawson/vfs": "*"
    }
}
```

Documentation
-------------

[](#documentation)

After creating and mounting the file system, you have the option of manipulating the virtual file system either via PHP's built-in functions, the VFS interfaces, or interfaces provided by another file system library.

```
