PHPackages                             sw2eu/cron-command - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. sw2eu/cron-command

ActiveLibrary[CLI &amp; Console](/categories/cli)

sw2eu/cron-command
==================

v0.8.3(9y ago)136[1 issues](https://github.com/sw2eu/cron-command/issues)BSDPHP

Since Aug 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sw2eu/cron-command)[ Packagist](https://packagist.org/packages/sw2eu/cron-command)[ RSS](/packages/sw2eu-cron-command/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

CronCommand - automatized cron tasks
====================================

[](#croncommand---automatized-cron-tasks)

If you are familiar with [Nette Framework](https://github.com/nette/nette) and [Symfony Console](https://github.com/symfony/Console) (especially [implementation by Kdyby](https://github.com/Kdyby/Console)), you probably had idea to used it for cron operations. This tool will help you with maintenance of cron tasks.

Requirements
------------

[](#requirements)

This library requires PHP 5.5 or higher. CronCommand library is designed for [Nette Framework](https://github.com/nette/nette); however, it can be also used with other frameworks or pure PHP.

Installation
------------

[](#installation)

The best way to install this library is using [Composer](http://getcomposer.org/):

```
$ composer require sw2eu/cron-command
```

Documentation
-------------

[](#documentation)

Firstly, register extension `Sw2\CronCommand\Bridges\Nette\DI\CronCommandExtension`. For more information about configuration see the class definition. Some features would not work in version 0.8.x (simply - they are not yet been implemented), so please be patient and [stay tuned](https://github.com/sw2eu/cron-command/stargazers).

```
extension:
    cron: Sw2\CronCommand\Bridges\Nette\DI\CronCommandExtension
```

Now define your first task. Here is full source code of my AwesomeTask:

```
