2015-08-05 16:55:56 +02:00
# file
2015-07-18 21:06:19 +02:00
2015-08-05 16:55:56 +02:00
[![Build Status ](https://img.shields.io/travis/amphp/file/master.svg?style=flat-square )](https://travis-ci.org/amphp/file)
[![CoverageStatus ](https://img.shields.io/coveralls/amphp/file/master.svg?style=flat-square )](https://coveralls.io/github/amphp/file?branch=master)
2015-07-28 15:53:00 +02:00
![License ](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square )
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
`amphp/file` allows non-blocking access to the filesystem for [Amp ](https://github.com/amphp/amp ).
2015-07-28 15:53:00 +02:00
2017-06-21 10:26:39 +02:00
## Installation
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
This package can be installed as a [Composer ](https://getcomposer.org/ ) dependency.
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
```bash
composer require amphp/file
```
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
## Optional Extension Backends
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
Extensions allow to use threading in the background instead of using multiple processes.
- [eio ](https://pecl.php.net/package/eio )
- [php-uv ](https://github.com/bwoebi/php-uv )
2020-05-03 18:59:52 +02:00
- [parallel ](https://github.com/krakjoe/parallel )
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
`amphp/file` works out of the box without any PHP extensions. It uses multi-processing by default, but also comes with a blocking driver that just uses PHP's blocking functions in the current process.
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
## Versioning
2015-07-11 03:59:39 +02:00
2017-06-21 10:26:39 +02:00
`amphp/file` follows the [semver ](http://semver.org/ ) semantic versioning specification like all other `amphp` packages.
## Security
If you discover any security related issues, please email [`me@kelunik.com` ](mailto:me@kelunik.com ) instead of using the issue tracker.
2015-07-30 15:07:01 +02:00
2017-06-21 10:26:39 +02:00
## License
2015-07-30 15:07:01 +02:00
2020-05-03 18:59:52 +02:00
The MIT License (MIT). Please see [`LICENSE` ](./LICENSE ) for more information.