PHPackages                             jubianchi/async-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jubianchi/async-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jubianchi/async-generator
=========================

An async generator runtime for PHP

4232

Since Mar 18Compare

[ Source](https://github.com/jubianchi/async-generator)[ Packagist](https://packagist.org/packages/jubianchi/async-generator)[ RSS](/packages/jubianchi-async-generator/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

async-generator
===============

[](#async-generator)

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

Requirements
------------

[](#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
-------

[](#install)

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

```
{
    "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
-------

[](#testing)

Once everything is installed, create a simple PHP file:

```
