Skip to content

xiaoshouchen/php-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-TASK

PHP-TASK is a cron tool manage cron job without editing cron file

PREPARE

  • PHP 5.6+
  • install php-redis

INSTALL

composer install github.com/xiaoshouchen/php-task

HOW TO USE

get a redis client

init_redis($host,$port,$password)

implement a BaseScript

you need implement baseScript

<?php

namespace xiaoshouchen\src;

class TestScript extends \BaseScript
{

    protected function action(): bool
    {
        echo 'test';
        return true;
    }
}

execute a cron

 

About

a php cron manage tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages