Skip to content
Task runner written in php
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Tasker
tests
.gitignore
LICENSE
README.md
composer.json

README.md

Tasker is simple & powerful task runner written in php

With support of "multi threading" - make your tasks done very fast.

Tasker

###Minimal configuration Example of usage Tasker with default tasks

<?php

define('ROOT', realpath(__DIR__ . '/..'));

require ROOT . '/libs-dev/autoload.php';

$tasker = new \Tasker\Tasker;
$tasker->addConfig(ROOT . '/config/tasker.json')
	//->addConfig(array('rootPath' => ROOT))
	->registerTask(new \Tasker\Copy\CopyFilesTask(), 'copy')
	->registerTask(new \Tasker\Concat\ConcatFilesTask(), 'js');
$tasker->run();

##Available settings example of settings from file ROOT . '/config/tasker.json'

	{
	  "multithreading": {
	    "allow": true,
	    "limit": 10,
	    "sleep": 1,
	    "storage": "temp/results"
	  },
	  "rootPath": "/path/to/your/repository",
	  "verbose": "false",
	}

Details:

multithreading[sleep]: value in seconds, make CPU to do it
multithreading[storage]: for storing results in diferrent threads
rootPath: default is *getcwd()*
verbose: if you are runnig script from console, value is set to TRUE
You can’t perform that action at this time.