Skip to content

Repository files navigation

parallel-functions

Build StatusLicense

Installation

This package can be installed as a Composer dependency.

composer require amphp/parallel-functions

Requirements

  • PHP 7.0+

Documentation

Documentation can be found on amphp.org as well as in the ./docs directory.

Example

<?phpusefunctionAmp\ParallelFunctions\parallelMap;
usefunctionAmp\Promise\wait;
$responses = wait(parallelMap([
'https://google.com/',
'https://github.com/',
'https://stackoverflow.com/',
], function ($url) {
returnfile_get_contents($url);
}));

Further examples can be found in the ./examples directory.

Versioning

amphp/parallel-functions follows the semver semantic versioning specification like all other amphp packages.

Security

If you discover any security related issues, please email me@kelunik.com instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.

About

Simplified parallel processing for PHP based on Amp.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages