shifft/background 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

shifft/background

Composer 安装命令:

composer require shifft/background

包简介

Package to run laravel commands in the background

README 文档

README

What is this?

This package allows laravel to run a laravel command in the background

Getting Started

To get started, require the package with composer require shifft/background and publish the configfile with php artisan vendor:publish --tag=config

Please modify the config/background.php to match your configuration.

Usage

Have the following code at the top of your file

use Shifft\Background\Background;

And use it as such:

Background::runInBackround('list', 'listPid');//run the artisan list command with the process id(pid) listPid. The pid can be anything you want
Background::isRunning('listPid');//check if the process with the pid listPid is still running

To cleanup the pid files the commando background:cleanup was made and should be scheduled by putting the following lines in the Console Kernel schedule command.

$schedule->command('background:cleanup')
		 ->dailyAt('0:00');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-01-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固