Download the PHP package sblazheev/filesystem without Composer
On this page you can find all versions of the php package sblazheev/filesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sblazheev/filesystem
More information about sblazheev/filesystem
Files in sblazheev/filesystem
Package filesystem
Short Description Asynchronous filesystem abstraction.
License MIT
Informations about the package filesystem
Filesystem
ReactPHP's evented asynchronous, non-blocking filesystem access library.
Table of Contents
- Introduction
- Adapters
- Examples
- Creating filesystem object
- File object
- Reading files
- Writing files
- Directory object
- List contents
- Install
- License
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
- ChildProcessAdapter - Adapter using child processes to perform IO actions (default adapter if no extensions are installed)
- EioAdapter - Adapter using
ext-eio
Examples
Adding examples here over time.
Creating filesystem object
File object
Reading files
Which is a convenience method for:
Which in it's turn is a convenience method for:
Writing files
Open a file for writing (w
flag) and write abcde
to test.txt
and close it. Create it (c
flag) when it doesn't exists and truncate it (t
flag) when it does.
Directory object
List contents
Install
The recommended way to install this library is through Composer. New to Composer?
This will install the latest supported version:
License
React/Filesystem is released under the MIT license.
All versions of filesystem with dependencies
evenement/evenement Version ^3.0 || ^2.0
react/event-loop Version ^1.0 || ^0.5 || ^0.4
react/promise Version ~2.2
react/promise-stream Version ^1.1
react/stream Version ^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4
wyrihaximus/react-child-process-pool Version ^1.3