anwaro / wincron
在Windows平台上运行cron作业
0.1.1
2018-07-11 11:27 UTC
Requires (Dev)
- phpunit/phpunit: ^5
This package is not auto-updated.
Last update: 2024-09-20 22:43:20 UTC
README
在Windows平台上运行cron作业
安装
安装此扩展的首选方式是通过 composer。
可以运行
php composer.phar require --prefer-dist anwaro/wincron "*"
或者
composer require --prefer-dist anwaro/wincron "*"
或者将
"anwaro/wincron": "*"
添加到你的 composer.json
文件的 require 部分。
用法
<?php use anwaro\wincron\Cron; $config = [ 'path' => __DIR__, // path to file with cron job list 'file' => 'crontab.txt' // file with cron job list ]; $cron = new Cron($config); $cron->run();