https://github.com/krakjoe/parallel
A succinct parallel concurrency API for PHP8
https://github.com/krakjoe/parallel
Last synced: 4 months ago
JSON representation
A succinct parallel concurrency API for PHP8
- Host: GitHub
- URL: https://github.com/krakjoe/parallel
- Owner: krakjoe
- License: other
- Created: 2019-02-11T23:49:15.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-03-14T16:24:48.000Z (over 1 year ago)
- Last Synced: 2025-04-05T10:01:40.675Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 979 KB
- Stars: 1,524
- Watchers: 57
- Forks: 94
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-extensions - parallel - 并行运算 (异步)
README
parallel
========
[](https://github.com/krakjoe/parallel/actions/workflows/linux.yml)
[](https://github.com/krakjoe/parallel/actions/workflows/asan.yml)
[](https://github.com/krakjoe/parallel/actions/workflows/windows.yml)
[](https://coveralls.io/github/krakjoe/parallel)
A succinct parallel concurrency API for PHP 8
[](https://gofund.me/c34f3dde)
Documentation
=============
Documentation can be found in the PHP manual: https://php.net/parallel
Requirements and Installation
=============================
See [INSTALL.md](INSTALL.md)
Hello World
===========
```php
run(function(){
for ($i = 0; $i < 500; $i++)
echo "*";
return "easy";
});
for ($i = 0; $i < 500; $i++) {
echo ".";
}
printf("\nUsing \\parallel\\Runtime is %s\n", $future->value());
```
This may output something like (output abbreviated):
```
.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*
Using \parallel\Runtime is easy
```
Development
===========
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on contribution and development (and debugging).