Registry / async / amphp-file

amphp-file

JSON →
library3.2.0phppackagistunverified

Non-blocking access to the filesystem based on Amp and Revolt.

composer require amphp/file
INSTALL
IMPORT
SIG · AMPHP-FILE
A
amphp-file
asyncphpv3.2.0
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 Amp\File\Filesystem;

Read a file asynchronously using Amp's filesystem.

use Amp\File\Filesystem; $contents = Filesystem::read('/path/to/file'); var_dump($contents);
Debug
Known issues
gotchaRequires an event loop (e.g., Amp\Loop::run()) to execute.
fix
Wrap your code in Amp\Loop::run() or use a coroutine.
affects: >=3.0.0
Upgrade
Version history
3.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
38
Amazon
1
Resources
amphp-file — pip install amphp-file · libregistry