PHPackages                             pedrogaldino/php-thread-pool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pedrogaldino/php-thread-pool

ActiveLibrary

pedrogaldino/php-thread-pool
============================

Implementação de uma interface para utilização de Thread Pool com PHP

v1.0-beta.4(6y ago)2731[1 issues](https://github.com/pedrogaldino/php-thread-pool/issues)[1 PRs](https://github.com/pedrogaldino/php-thread-pool/pulls)MITPHP

Since Mar 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pedrogaldino/php-thread-pool)[ Packagist](https://packagist.org/packages/pedrogaldino/php-thread-pool)[ Docs](http://pedrogaldino.com)[ RSS](/packages/pedrogaldino-php-thread-pool/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

PHP Thread Pool
===============

[](#php-thread-pool)

This package is a simple PHP Thread Pool manager to create concurrent tasks easily using a great and simple interface.

It's require PHP 7.4 Thread Safe and PHP Parallel extension.

Instalation
-----------

[](#instalation)

You can install the required extension on your PHP using PECL:

```
pecl install paralell

```

Package Installation:

```
composer require pedrogaldino/php-thread-pool

```

Quick Start
-----------

[](#quick-start)

### Tasks

[](#tasks)

Task is the place to put the code that will be executed inside a queue. Basically the code that your need to run in a concurrent way without block any parent code execution.

Let's create our task:

```
