2017 © Pedro Peláez
 

library resque-enqueuer

A library that lets you enqueue jobs in Resque from a PHP application

image

italiansubs/resque-enqueuer

A library that lets you enqueue jobs in Resque from a PHP application

  • Friday, August 30, 2013
  • by andreausu
  • Repository
  • 1 Watchers
  • 3 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

ResqueEnqueuer

A library that lets you enqueue Resque jobs from a PHP application., (*1)

Requirements

  • php >= 5.3.3 (>= 5.4 in order to be able to run the tests)
  • phpredis

Installation

Create a composer.json file with the following content:, (*2)

``` json { "require": { "italiansubs/resque-enqueuer": "0.1.*" } }, (*3)


Then run ``` bash $ curl -s https://getcomposer.org/installer | php $ php composer.phar install

You should now have ResqueEnqueuer installed inside your vendor folder: vendor/italiansubs/resque-enqueuer, (*4)

And an handy autoload file to include in you project: vendor/autoload.php, (*5)

How to use

``` php <?php require_once DIR . '/vendor/autoload.php';, (*6)

use ResqueEnqueuer\Enqueuer;, (*7)

try { $enq = new Enqueuer(); // $redisHost, $redisPort, $redisDb, $resqueBaseKeyName $enq->enqueue('queue_name', 'job_name', array('id_user' => 100, 'other_param' => 'foo')); } catch (RedisException $e) { echo $e->getMessage() . PHP_EOL; }, (*8)


Testing ------- The library is fully tested with PHPUnit. Go to the base library folder and install the dev dependencies with composer, and then run the phpunit test suite ``` bash $ composer --dev install $ ./vendor/bin/phpunit --colors test

Thanks

Many thanks to the great folks that developed and are contributing to the absolutely awesome tool that is Resque!, (*9)

Also props to my friend and colleague Matteo Giachino that pushed me to open source my first project and from whom I pretty much copied this readme structure., (*10)

The Versions

30/08 2013

dev-master

9999999-dev http://andreausu.github.com/ResqueEnqueuer

A library that lets you enqueue jobs in Resque from a PHP application

  Sources   Download

MIT

The Requires

  • ext-redis *
  • php >=5.3.3

 

The Development Requires

by Andrea Usuelli

php resque

30/08 2013

v0.1.4

0.1.4.0 http://andreausu.github.com/ResqueEnqueuer

A library that lets you enqueue jobs in Resque from a PHP application

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-redis *

 

The Development Requires

by Andrea Usuelli

php resque

28/01 2013

0.1.3

0.1.3.0 http://andreausu.github.com/ResqueEnqueuer

A library that lets you enqueue jobs in Resque from a PHP application

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-redis *

 

The Development Requires

by Andrea Usuelli

php resque

26/01 2013

0.1.2

0.1.2.0 http://andreausu.github.com/ResqueEnqueuer

A library that lets you enqueue jobs in Resque from a PHP application

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-redis *

 

The Development Requires

by Andrea Usuelli

php resque

26/01 2013

0.1.0

0.1.0.0 http://andreausu.github.com/ResqueEnqueuer

A library that lets you enqueue jobs in Resque from a PHP application

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-redis *

 

The Development Requires

by Andrea Usuelli

php resque