Registry / async / react-filesystem

react-filesystem

JSON →
library0.1.2phppackagistunverified

Asynchronous filesystem abstraction.

composer require react/filesystem
INSTALL
IMPORT
SIG · REACT-FILESYSTEM
R
react-filesystem
asyncphpv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Filesystem
use React\Filesystem\Filesystem;

Read a file asynchronously using ReactPHP.

use React\Filesystem\Filesystem; use React\EventLoop\Loop; $loop = Loop::get(); $filesystem = Filesystem::create($loop); $filesystem->file('/path/to/file')->getContents()->then(function ($contents) { echo $contents; }); $loop->run();
Debug
Known issues
gotchaRequires an event loop to run; blocking calls will not work without one.
fix
Always create and run an event loop (e.g., React\EventLoop\Loop).
affects: >=0.1.0
Upgrade
Version history
0.1.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
26
Amazon
1
OpenAI (training)
1
Resources
react-filesystem — pip install react-filesystem · libregistry