PHPackages                             sblazheev/filesystem - 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. sblazheev/filesystem

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

sblazheev/filesystem
====================

Asynchronous filesystem abstraction.

0.1.3(7y ago)010MITPHPPHP &gt;=5.4.0

Since Jun 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sblazheev/filesystem)[ Packagist](https://packagist.org/packages/sblazheev/filesystem)[ RSS](/packages/sblazheev-filesystem/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (8)Versions (8)Used By (0)

Filesystem
==========

[](#filesystem)

[![Build Status](https://camo.githubusercontent.com/afca50cc6c622361a1afcfed04703e4dfc1067d1cd18ff66a12ddbdbb391d2ee/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f72656163747068702f66696c6573797374656d2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/reactphp/filesystem) [![Code Climate](https://camo.githubusercontent.com/7f154052057f3b76b5a04aa487b6a53fd5ab3004b4a44507dfdaaf5eb1cae9d4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f72656163747068702f66696c6573797374656d2f6261646765732f6770612e737667)](https://codeclimate.com/github/reactphp/filesystem)

[ReactPHP](https://reactphp.org/)'s evented asynchronous, non-blocking filesystem access library.

Table of Contents
-----------------

[](#table-of-contents)

1. [Introduction](#introduction)
2. [Adapters](#adapters)
3. [Examples](#examples)
    - [Creating filesystem object](#creating-filesystem-object)
    - [File object](#file-object)
        - [Reading files](#reading-files)
        - [Writing files](#writing-files)
    - [Directory object](#directory-object)
        - [List contents](#list-contents)
4. [Install](#install)
5. [License](#license)

Introduction
------------

[](#introduction)

`react/filesystem` is a package to power your application with asynchronous, non-blocking filesystem access. Asynchronous access is enabled by various adapters described below.

Adapters
--------

[](#adapters)

- ChildProcessAdapter - Adapter using child processes to perform IO actions (default adapter if no extensions are installed)
- EioAdapter - Adapter using `ext-eio`

Examples
--------

[](#examples)

`Adding examples here over time.`

Creating filesystem object
--------------------------

[](#creating-filesystem-object)

```
