Stars: 248
Forks: 18
Pull Requests: 10
Issues: 26
Watchers: 15
Last Updated: 2023-08-01 07:18:45
Simplified parallel processing for PHP based on Amp.
License: MIT License
Languages: PHP
This package can be installed as a Composer dependency.
composer require amphp/parallel-functions
Documentation can be found on amphp.org as well as in the ./docs
directory.
<?php
use function Amp\ParallelFunctions\parallelMap;
use function Amp\Promise\wait;
$responses = wait(parallelMap([
'https://google.com/',
'https://github.com/',
'https://stackoverflow.com/',
], function ($url) {
return file_get_contents($url);
}));
Further examples can be found in the ./examples
directory.
amphp/parallel-functions
follows the semver semantic versioning specification like all other amphp
packages.
If you discover any security related issues, please email [email protected]
instead of using the issue tracker.
The MIT License (MIT). Please see LICENSE
for more information.