PHPackages                             kwstanislav/crunz - 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. kwstanislav/crunz

ActiveLibrary

kwstanislav/crunz
=================

Schedule your tasks right from the code.

v1.4.9(8y ago)181MITPHPPHP &gt;=5.5

Since Apr 12Pushed 8y agoCompare

[ Source](https://github.com/kwStanislav/crunz)[ Packagist](https://packagist.org/packages/kwstanislav/crunz)[ Docs](https://github.com/lavary/crunz)[ RSS](/packages/kwstanislav-crunz/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (12)Versions (26)Used By (0)

Crunz [![Build Status](https://camo.githubusercontent.com/9b2aa69c264389cbbd656ea3b35b5839c5a0ada66fb5fc48ecde35283304021a/68747470733a2f2f7472617669732d63692e6f72672f4e47656e546563684c6162732f6372756e7a2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/NGenTechLabs/crunz)
===========================================================================================================================================================================================================================================================================================

[](#crunz-)

Install a cron job once and for all, manage the rest from the code.

Crunz is a framework-agnostic package to schedule periodic tasks (cron jobs) in PHP using a fluent API.

Crunz is capable of executing any kind of executable command as well as PHP closures.

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

[](#installation)

To install it:

```
composer require kwstanislav/crunz
```

If the installation is successful, a command-line utility named **crunz** is symlinked to `vendor/bin` directory of your project.

How It Works?
-------------

[](#how-it-works)

The idea is very simple: instead of a installing cron jobs in a crontab file, we define them in one or several PHP files, by using the Crunz interface.

Here's a basic example:

```
