Download the PHP package chester/background-mission without Composer

On this page you can find all versions of the php package chester/background-mission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package background-mission

Background-Tasks

让你的 PHP 代码异步执行起来

Laravel 扩展包,基于 MySQL 后台任务管理工具,使用 Laravel Event Console 执行任务,负责管理和监控任务代码执行状态,让后台任务执行更简单。

任务选项

参数名称 是否必填 描述
method 任务执行方法 Logic
params 执行 Method 所需要的参数
type 任务分类,自定义字符串
creator 任务提交者,自定义字符串

Composer 安装

仓库源:https://packagist.org/packages/chester/background-mission

MySQL Migration

创建数据表:不创建数据表是无法正常提交任务的

配置 Provider:

测试示例

假设后台需要导出1000万条数据,并下载这个文件,下面模拟导出 csv

运行测试示例:

查看执行状态:

看到任务已经进入后台执行,并显示 Executing 状态。

经过一段时间后台,可以看到任务已经完成,并且输出 Content 包含文件 Csv 所在的路径,同时任务为 Success 状态。

自定义 Logic Functions

新建类:

关联配置 config/const.php:

请求时,提交任务:


All versions of background-mission with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5.9 || ^7.0
laravel/framework Version 5.5.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chester/background-mission contains the following files

Loading the files please wait ....