2017 © Pedro Peláez
 

library beanstalk

Async beanstalk driver for Amp.

image

amphp/beanstalk

Async beanstalk driver for Amp.

  • Wednesday, May 16, 2018
  • by kelunik
  • Repository
  • 7 Watchers
  • 32 Stars
  • 557 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 9 Forks
  • 5 Open issues
  • 8 Versions
  • 11 % Grown

The README.md

beanstalk

Build Status CoverageStatus License, (*1)

amphp/beanstalk is an asynchronous Beanstalk client for PHP based on Amp., (*2)

Installation

composer require amphp/beanstalk

Examples

More extensive code examples reside in the examples directory., (*3)

<?php

require __DIR__ . '/../vendor/autoload.php';

use Amp\Beanstalk\BeanstalkClient;
use Amp\Loop;

Loop::run(function () {
    $beanstalk = new BeanstalkClient("tcp://127.0.0.1:11300");
    yield $beanstalk->use('sometube');

    $payload = json_encode([
        "job" => bin2hex(random_bytes(16)),
        "type" => "compress-image",
        "path" => "/path/to/image.png"
    ]);

    $jobId = yield $beanstalk->put($payload);

    echo "Inserted job id: $jobId\n";

    $beanstalk->quit();
});

License

The MIT License (MIT). Please see LICENSE for more information., (*4)

The Versions

24/06 2017
29/10 2016

0.1.x-dev

0.1.9999999.9999999-dev

Async beanstalk driver.

  Sources   Download

MIT

The Requires

 

10/05 2016

v0.1.1

0.1.1.0

Async beanstalk driver.

  Sources   Download

MIT

The Requires

 

09/05 2016

v0.1.0

0.1.0.0

Async beanstalk driver.

  Sources   Download

MIT

The Requires