Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Simplified parallel processing for PHP based on Amp.
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Update docs Oct 28, 2018
examples Use CallableTask from amphp/parallel v1.1 Jan 8, 2019
src Serialize callable immediately Jan 9, 2019
test
.editorconfig
.gitignore Add php-cs-fixer and fix code style Dec 13, 2017
.gitmodules Add docs Dec 13, 2017
.php_cs.dist Add php-cs-fixer and fix code style Dec 13, 2017
.travis.yml
LICENSE
README.md Fix example Dec 16, 2017
composer.json
phpunit.xml.dist

README.md

parallel-functions

Build Status License

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

<?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.

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.

You can’t perform that action at this time.