Download the PHP package cncoders/thinkphp-job without Composer

On this page you can find all versions of the php package cncoders/thinkphp-job. 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 thinkphp-job

think-job

基于thinkphp6的一个简单任务队列系统

使用方法

1.引用包文件

2.复制配置文件

示例配置文件位于目录的config目录里面的job.php根据自己的项目需求配置

3. 建立工作文件

在配置文件设置的 “namespace” 对应的目录内建立自己需要的工作文件

文件示例如下

这是很简单的记录日志文件,将该传递给该队列的参数记录到日志

4.控制器中使用

5.异步执行

我们提供了同步与异步执行的方式 您只需要配置job.php type除sync以外都是异步执行,您需要将 cncoders\job\JobCommand加入到thinkphp的console.php内

申明

本插件在中小型项目中比较实用 专业大型项目请使用市场上成熟的消息队列系统


All versions of thinkphp-job with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
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 cncoders/thinkphp-job contains the following files

Loading the files please wait ....