周总批发商场
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
yangsai@163.com cf3d792c05 周总盲盒批发商场 6 months ago
..
example 周总盲盒批发商场 6 months ago
src 周总盲盒批发商场 6 months ago
README.md 周总盲盒批发商场 6 months ago
composer.json 周总盲盒批发商场 6 months ago

README.md

Crontab

A crontab with precision in seconds written in PHP based on workerman.

Install

composer require workerman/crontab

Usage

start.php

<?php
use Workerman\Worker;
require __DIR__ . '/../vendor/autoload.php';

use Workerman\Crontab\Crontab;
$worker = new Worker();

$worker->onWorkerStart = function () {
    // Execute the function in the first second of every minute.
    new Crontab('1 * * * * *', function(){
        echo date('Y-m-d H:i:s')."\n";
    });
};

Worker::runAll();

Run with commands php start.php start or php start.php start -d