1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 13:21:16 +01:00

Update README to v2

This commit is contained in:
Niklas Keller 2017-03-12 12:44:32 +01:00
parent b95b49c101
commit 16da1a869e

View File

@ -2,16 +2,16 @@
[![Build Status](https://img.shields.io/travis/amphp/amp/master.svg?style=flat-square)](https://travis-ci.org/amphp/amp)
[![CoverageStatus](https://img.shields.io/coveralls/amphp/amp/master.svg?style=flat-square)](https://coveralls.io/github/amphp/amp?branch=master)
![Stable v1](https://img.shields.io/badge/stable-v1-green.svg?style=flat-square)
![Stable v2](https://img.shields.io/badge/stable-v2-green.svg?style=flat-square)
![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
`amphp/amp` is a non-blocking concurrency framework for PHP applications.
Learn more about `amphp/amp` in [the guide](http://amphp.org/docs/amp/).
`amphp/amp` is a non-blocking concurrency framework for PHP. It provides an event loop, promises and streams as a base for asynchronous programming.
Promises in combination with generators are used to build coroutines, which allow writing asynchronous code just like synchronous code, without any callbacks.
**Required PHP Version**
- PHP 5.5+
- PHP 7.0+
**Optional Extension Backends**
@ -19,10 +19,10 @@ Extensions are only needed if your app necessitates high numbers of concurrent s
- [ev](https://pecl.php.net/package/ev)
- [libevent](https://pecl.php.net/package/libevent)
- [php-uv](https://github.com/bwoebi/php-uv) (experimental fork, requires PHP7)
- [php-uv](https://github.com/bwoebi/php-uv) (experimental fork, requires PHP 7)
**Installation**
```bash
$ composer require amphp/amp
```
$ composer require amphp/amp ^2@dev
```