2016-08-01 07:04:46 +00:00
|
|
|
## Features
|
2016-07-28 21:55:02 +00:00
|
|
|
|
2016-08-01 07:04:46 +00:00
|
|
|
This package provides tools for the following, and more:
|
|
|
|
|
|
|
|
- Add jobs to queue
|
2016-08-02 06:15:19 +00:00
|
|
|
- Console command to run a single worker
|
2016-08-01 07:04:46 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Via composer
|
|
|
|
|
|
|
|
``` bash
|
|
|
|
$ composer require hlgrrnhrdt/laravel-resque
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-02 06:14:39 +00:00
|
|
|
Copy the config file ```config/resque.php``` from the package to your config folder.
|
2016-08-01 07:04:46 +00:00
|
|
|
|
|
|
|
### Laravel
|
|
|
|
|
|
|
|
|
|
|
|
``` php
|
|
|
|
'providers' => [
|
|
|
|
Hlgrrnhrdt\Resque\ResqueServiceProvider::class
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Lumen
|
|
|
|
|
|
|
|
Open ```bootstrap/app.php``` and register the required service provider
|
|
|
|
|
|
|
|
``` php
|
|
|
|
$app->register(Hlgrrnhrdt\Resque\ResqueServiceProvider::class);
|
|
|
|
```
|
|
|
|
|
|
|
|
and load the config with
|
|
|
|
``` php
|
|
|
|
|
|
|
|
$app->configure('resque');
|
|
|
|
```
|