Download the PHP package yzh52521/think-cron without Composer

On this page you can find all versions of the php package yzh52521/think-cron. 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 think-cron

think-cron 计划任务

项目目标:

项目中往往因为有非常多的计划任务而变的难以维护。且每次都需要麻烦运维,也不是一件很好的事情。看了很多大神写的计划任务工具,都不太符合自己的需求。因此萌发了“使用单一入口管理项目中的计划任务”的想法,抽空看了下thinkphp相关扩展的实现方法,依葫芦画瓢实现了本扩展。本扩展支持配置文件和mysql方式管理任务列表。

安装方法

使用方法

创建任务类

配置

配置文件位于 application/cron.php

使用mysql存储定时任务时,请将 type 设置为 mysql,然后控制台执行 php think cron:install 初始化数据库,或者手动创建如下数据表

创建计划任务

创建计划任务例子

任务监听

两种方法:

方法一

起一个常驻进程,或者配合supervisor使用 (推荐)
php think cron:schedule start --daemon
创建 supervisor

方法二

在系统的计划任务里添加

* * * * * php /path/to/think cron:run >> /dev/null 2>&1

特别鸣谢

写在最后


All versions of think-cron with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
dragonmantank/cron-expression Version ^3.0
symfony/process Version ^4.4
nesbot/carbon Version ^2.28
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 yzh52521/think-cron contains the following files

Loading the files please wait ....