PHPackages                             rauny-henrique/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rauny-henrique/php-thread-pool

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rauny-henrique/php-thread-pool
==============================

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

v1.0-beta.5(4y ago)036MITPHP

Since Mar 28Pushed 4y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (6)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:

```
