Download the PHP package leistar/thinkphp5.1-crontab without Composer

On this page you can find all versions of the php package leistar/thinkphp5.1-crontab. 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 thinkphp5.1-crontab

thinkphp5.1-crontab

项目目标:

项目中往往因为有非常多的计划任务而变的难以维护。且每次都需要麻烦运维,也不是一件很好的事情。看了很多大神写的计划任务工具,但是都是在php层级循环调用子任务。这样难免会产生同步阻塞的问题。因此萌发了“使用shell单一入口管理项目中的计划任务”的想法;

安装

composer require leistar/thinkphp5.1-crontab

开始使用

  1. 将cron.sh和task(注意没有后缀名)文件复制到你服务器中任意目录;(例如复制到项目根目录,和think文件平级)
  2. 修改cron.sh文件,将其中的php路径和文件路径修改正确
  3. 创建自定义命令,请参考:创建自定义指令
  4. 需要加入计划任务的命令,要求继承thinkphp5.1-crontab项目的Task基类;并实现schedule(),configure(),execute()三个方法。
  5. 将命令名写在第一步的task文件中。
  6. 可参考项目中的demo. 特别注意:demo中的类可能会有命名空间的问题,并不一定能实现功能。只是参考使用
  7. 将sh加入到计划任务中

特别鸣谢


All versions of thinkphp5.1-crontab with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
topthink/think-installer Version ^2.0
mtdowling/cron-expression Version ^1.2
jenssegers/date Version ^3.2
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 leistar/thinkphp5.1-crontab contains the following files

Loading the files please wait ....