Download the PHP package zhaoshiyou/queue-intelligent-scheduling without Composer

On this page you can find all versions of the php package zhaoshiyou/queue-intelligent-scheduling. 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 queue-intelligent-scheduling

这里就不扯什么英文了。 一个简单的功能

这个包是基于的laravel 8.x 智能调度来消费队列 命名空间Zsy(zhaoshiyou的首字母缩写) 只适用于Linux环境。 windows下的话可以测试,但需要修改一下代码,类queueIntelligentScheduling 第46-47行

调用示例:

use Zsy\Qis\queueIntelligentScheduling;

class TestController extends Controller {

public function check() {

    $a=new queueIntelligentScheduling('message',10,15,[1000=>1,5000=>2,8000=>5,20000=>10,50000=>15]);
    //第一个参数为laravel的队列名,
    //第二个参数为一个消费进程执行的多少条就自动退出,第三个参数是一个消费进程执行多长时间就自动退出,两者先到为准(都是必填项,且需要认真配置)
    //第三个参数是数组配置,解释一下:队列长度超过5000以内起2个消费进程,超过8000起5个进程消费,超过50000起15个进程。

    $a->intelligentScheduling();

}    

}

然后在服务器或者用laravel自带的任务调度,定时去执行check方法。比如每5分钟去执行一下check()。就会实现根据laravel队列的长度,智能的去起消费进程,而且进程也会根据你的配置自动退出。


All versions of queue-intelligent-scheduling with dependencies

PHP Build Version
Package Version
No informations.
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 zhaoshiyou/queue-intelligent-scheduling contains the following files

Loading the files please wait ...