承接 mmanos/laravel-localpushqueue 相关项目开发

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

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

mmanos/laravel-localpushqueue

最新稳定版本:v1.0.0

Composer 安装命令:

composer require mmanos/laravel-localpushqueue

包简介

A local push queue driver for Laravel 4.

README 文档

README

This package provides a local laravel queue driver that will open a non-blocking connection to itself, thus offloading the actuall processing of a job.

Limitations

  • Retying failed attempts does not work
  • Delayed jobs are not delayed and execute immediately

Installation Via Composer

Add this to you composer.json file, in the require object:

"mmanos/laravel-localpushqueue": "dev-master"

After that, run composer install to install the package.

Add the service provider to app/config/app.php, within the providers array.

'providers' => array(
	// ...
	'Mmanos\LocalPushQueue\LocalPushQueueServiceProvider',
)

Configuration

Update the existing queue.php config file and add a new local array to the existing connections array:

'connections' => array(
	//...
	'local' => array(
		'driver' => 'localpush',
		'method' => 'POST',
		'url'    => url('queue/receive'),
	),
),

Then update the default queue driver to be local.

Next, ensure you have a route defined to listen for your pushed jobs:

Route::post('queue/receive', function() { return Queue::marshal(); });

Finally, since this driver makes a request to the URL used by your application, make sure your server can resolve the hostname defined in the url config value. On a dev server you may need to ensure your local hostname is in your machine's hosts file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固