承接 pwt777/pheanstalk-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pwt777/pheanstalk-bundle

最新稳定版本:4.0.4

Composer 安装命令:

composer require pwt777/pheanstalk-bundle

包简介

The LeezyPheanstalkBundle is a Symfony2 Bundle that provides a command line interface for manage the Beanstalkd workqueue server & a pheanstalk integration.

README 文档

README

Build Status Packagist Scrutinizer Quality Score

Beanstalkd workqueue clients for Symfony.

The LeezyPheanstalkBundle is a Symfony Bundle that provides a pheanstalk integration with the following features:

  • Command Line Interface for manage the queues.
  • An integration to the Symfony event system.
  • An integration to the Symfony profiler system to monitor your beanstalk server.
  • An integration to the Symfony logger system.
  • A proxy system to customize the command features.
  • Auto-wiring: PheanstalkInterface

Support Symfony 2, 3 and 4.

Documentation :

Usage example

<?php

namespace Acme\DemoBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class HomeController extends Controller {

    public function indexAction() {
        $pheanstalk = $this->get("leezy.pheanstalk");

        // ----------------------------------------
        // producer (queues jobs)

        $pheanstalk
          ->useTube('testtube')
          ->put("job payload goes here\n");

        // ----------------------------------------
        // worker (performs jobs)

        $job = $pheanstalk
          ->watch('testtube')
          ->ignore('default')
          ->reserve();

        echo $job->getData();

        $pheanstalk->delete($job);
    }

}
?>

Testing

$ php composer.phar update
$ phpunit

License

This bundle is under the MIT license. See the complete license.

Other

Silex integration

Credits

Author - Thomas Tourlourat

Contributor :

统计信息

  • 总下载量: 2.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 48
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-19