pecl / parallel
A succinct parallel concurrency API for PHP 8
Package info
Language:C
Type:php-ext
Ext name:ext-parallel
pkg:composer/pecl/parallel
v1.2.15
2026-06-21 17:03 UTC
Requires
- php: >= 8.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-develop
- v1.2.15
- v1.2.14
- v1.2.13
- v1.2.12
- v1.2.11
- v1.2.10
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- dev-florian/harden-ci
- dev-florian/phase-2-link-functions
- dev-florian/test-tracing-jit
- dev-florian/notification-driven-events-v2
- dev-florian/fix-future-cleanup-use-after-free
- dev-florian/document-conventions
- dev-release
- dev-florian/fix-cache-collision
This package is not auto-updated.
Last update: 2026-09-15 14:37:16 UTC
README
A succinct parallel concurrency API for PHP 8
Documentation
Documentation can be found in the PHP manual: https://php.net/parallel
Requirements and Installation
See INSTALL.md
Hello World
<?php $runtime = new \parallel\Runtime(); $future = $runtime->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 for guidelines on contribution and development (and debugging).