Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jubianchi/async-generator

Non-blocking tasks with only PHP and generators
https://github.com/jubianchi/async-generator

Last synced: 22 days ago
JSON representation

Non-blocking tasks with only PHP and generators

Awesome Lists containing this project

README

        

# async-generator

**This project is in early alpha and is more a like a POC than a real production-ready library.**

## Requirements

The [async-generator](https://github.com/jubianchi/async-generator) library requires PHP `^7.0.3`(i.e PHP `>= 7.0.3 && < 8.0.0`)

## Install

Use [Composer](https://getcomposer.org/) to install this library into your project:

```json
{
"require": {
"jubianchi/async-generator": "@stable"
}
}
```

Then run `composer up jubianchi/async-generator` and everything should be ready.

If you don't want to manually edit your `composer.json` file, simply run `composer require jubianchi/async-generator`
and you should be ready.

## Testing

Once everything is installed, create a simple PHP file:

```php