Download the PHP package taskphp2/taskphp without Composer

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

taskPHP 3.0 —— 你值得信赖的PHP定时计划任务框架

历史版本

-->taskPHP1.x
-->taskPHP2.x

所有分支 查看所有分支

taskPHP

taskPHP基于php开发的定时计划任务框架,多进程实现任务的分配和运行,多种进程间通信驱动支持,支持多线程模式需要安装pthreads扩展(可选),支持linux和windows。有较好的伸缩性、扩展性、健壮稳定性而被多家公司使用,同时也希望开源爱好者一起贡献。

项目地址

github地址: https://github.com/qq8044023/taskPHP
gitee地址: https://gitee.com/cqcqphper/taskPHP
这两个地址都会同步更新。

在线交流QQ群

如感兴趣请加QQ群 一起探讨、完善。越多人支持,就越有动力去更新,喜欢记得右上角star哈。
taskPHP ①群:375841535(空)

框架说明

  1. 任务多进程运行模式。
  2. 任务多线程模式,需要安装pthreads扩展(可选)。
  3. 多种进程通信方式堵塞式消息队列。
  4. 任务派发及具体任务执行不在同个进程[distribute]和[worker],windows和linux下启用入口文件[start.php],windows下可运行[windows_start.cmd]快速启动。
  5. 执行时间语法跟crontab类似,且支持秒设置。

  6. 添加任务简单,只需编写任务类,实现任务入口run方法,详情参考examples目录内的测试任务。

环境要求

  1. php版本>= 5.5
  2. 开启socket扩展
  3. 开启pdo扩展
  4. 开启shmop扩展

注意事项

  1. 由于任务存在派发时间,所以任务运行的时间可能会有1-2秒的误差。
  2. 编写任务有问题或调用exit将导致后台脚本停止,需要通过远控管理器重启进程。
  3. 多线程模式运行一段时间后报错,pthreads has detected that the taskphp\Pthread could not be started, the system lacks the necessary resources or the system-imposed limit would be exceeded in xxx
  4. 后台任务数量多或者任务运行时间很密集导致数据库链接过多没有释放,需要再任务结尾处执行数据库链接对象的close方法来关闭链接。
  5. 在windows下代码存放路径不能有空格,否则会导致进程启动不起来。php的环境变量也最好也不要有空格,如果有空格可在框架配置中定义数组项php_path='php'。

文档列表

-->数据库类使用教程
-->windows下安装php多线程扩展pthreads教程
-->工具类Utils使用说明
-->thinkphp5.0框架的集成教程

使用说明

composer安装taskphp框架:

命令操作

启动程序


All versions of taskphp with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
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 taskphp2/taskphp contains the following files

Loading the files please wait ....