Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jubianchi/async-generator
- Owner: jubianchi
- License: mit
- Created: 2016-05-09T12:53:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T11:33:14.000Z (about 6 years ago)
- Last Synced: 2024-10-03T12:24:44.363Z (about 1 month ago)
- Language: PHP
- Homepage: http://jubianchi.github.io/async-generator/
- Size: 583 KB
- Stars: 42
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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