1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00
file/README.md

37 lines
1.4 KiB
Markdown
Raw Normal View History

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)
![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).
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)
- [pthreads](https://github.com/krakjoe/pthreads)
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.
2017-06-21 10:26:39 +02:00
## License
2017-06-21 10:26:39 +02:00
The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.