An open API service indexing awesome lists of open source software.

https://github.com/chesszebra/php-jobsystem

A PHP library that provides support for executing worker jobs.
https://github.com/chesszebra/php-jobsystem

beanstalkd job-queue php7

Last synced: 3 months ago
JSON representation

A PHP library that provides support for executing worker jobs.

Awesome Lists containing this project

README

          

# php-jobsystem

[![Build Status](https://travis-ci.org/chesszebra/php-jobsystem.svg?branch=master)](https://travis-ci.org/chesszebra/php-jobsystem)

A PHP library that provides support for executing worker jobs.

## Installation

```bash
composer require chesszebra/jobsystem
```

## Usage

Adding jobs:

```php
addJob(new \ChessZebra\JobSystem\Job\Job('my-worker', [
'some' => 'parameter',
]));
```

Executing jobs:

```php
run();
```

## Development

Run composer and phpunit using Docker:

```bash
docker run --rm -it -v $(pwd):/data chesszebra/composer install
docker run --rm -it -v $(pwd):/data chesszebra/phpunit
```