PHPackages                             gielfeldt/simple-worker - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. gielfeldt/simple-worker

ActiveLibrary[Queues &amp; Workers](/categories/queues)

gielfeldt/simple-worker
=======================

Simple worker and pool library.

07

Since May 30Compare

[ Source](https://github.com/gielfeldt/simple-worker)[ Packagist](https://packagist.org/packages/gielfeldt/simple-worker)[ RSS](/packages/gielfeldt-simple-worker/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Simple Worker
=============

[](#simple-worker)

[![Build Status](https://camo.githubusercontent.com/b4f34000b6b07e543c3eb0c8b6ac10abaa7c8876d85cf225600a6e496bd64ae2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6769656c66656c64742f73696d706c652d776f726b65722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gielfeldt/simple-worker/build-status/master)[![Test Coverage](https://camo.githubusercontent.com/0f04715e6c70bf70be734b187db094ec7dbb35ea8e2a8dd60250653930059505/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6769656c66656c64742f73696d706c652d776f726b65722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/gielfeldt/simple-worker/coverage)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a9009cf998b6666a812317113f2bce1099ea756d3d0bb1e057144575d705baf2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6769656c66656c64742f73696d706c652d776f726b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gielfeldt/simple-worker/?branch=master)[![Code Climate](https://camo.githubusercontent.com/7c5eda2183f342def6368efd8ea0d5a616debc4dce7bd6bf8f69eff9c75c4a9a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6769656c66656c64742f73696d706c652d776f726b65722f6261646765732f6770612e737667)](https://codeclimate.com/github/gielfeldt/simple-worker)

[![Latest Stable Version](https://camo.githubusercontent.com/d2ee25ede4799a57fac9b1616a00c72cc4e64d9e5bb7de8e2cdb9f82d3aa533c/68747470733a2f2f706f7365722e707567782e6f72672f6769656c66656c64742f73696d706c652d776f726b65722f762f737461626c652e737667)](https://packagist.org/packages/gielfeldt/simple-worker)[![Latest Unstable Version](https://camo.githubusercontent.com/4068d7e5b6c9733c362b6cda517e9f5b2cc6887ff11b04b2df7f35a21b244267/68747470733a2f2f706f7365722e707567782e6f72672f6769656c66656c64742f73696d706c652d776f726b65722f762f756e737461626c652e737667)](https://packagist.org/packages/gielfeldt/simple-worker)[![License](https://camo.githubusercontent.com/168d504228e1899874d87362782b786e65797d52621c0d872a8c761e717faa0e/68747470733a2f2f706f7365722e707567782e6f72672f6769656c66656c64742f73696d706c652d776f726b65722f6c6963656e73652e737667)](https://github.com/gielfeldt/simple-worker/blob/master/LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/f5b0bac8c6bf80e7e34712a827cf5c7c6fa2b68d3d038a9856fba95b8945cec0/68747470733a2f2f706f7365722e707567782e6f72672f6769656c66656c64742f73696d706c652d776f726b65722f646f776e6c6f6164732e737667)](https://packagist.org/packages/gielfeldt/simple-worker)

Installation
------------

[](#installation)

To install the Simple Worker library in your project using Composer, first add the following to your `composer.json`config file.

```
{
    "require": {
        "gielfeldt/simple-worker": "^0.1"
    }
}
```

Then run Composer's install or update commands to complete installation. Please visit the [Composer homepage](http://getcomposer.org) for more information about how to use Composer.

### Simple Worker

[](#simple-worker-1)

This class allows you to queue operations in a pool and let them commence when ready.

#### Motivation

[](#motivation)

1. De-coupling of the handling of guzzle asynchronous requests.

#### Using the Simple Worker library

[](#using-the-simple-worker-library)

##### Example

[](#example)

```
