PHPackages                             crunzphp/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. [CLI &amp; Console](/categories/cli)
4. /
5. crunzphp/crunz

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

crunzphp/crunz
==============

Schedule your tasks right from the code.

v3.9.3(2mo ago)2292.0M↓17.6%26[16 issues](https://github.com/crunzphp/crunz/issues)[2 PRs](https://github.com/crunzphp/crunz/pulls)6MITPHPPHP &gt;=8.2CI passing

Since Apr 12Pushed 2mo ago11 watchersCompare

[ Source](https://github.com/crunzphp/crunz)[ Packagist](https://packagist.org/packages/crunzphp/crunz)[ Docs](https://github.com/crunzphp/crunz)[ GitHub Sponsors](https://github.com/sponsors/PabloKowalczyk)[ RSS](/packages/crunzphp-crunz/feed)WikiDiscussions 3.10 Synced 1mo ago

READMEChangelog (10)Dependencies (42)Versions (90)Used By (6)

Crunz needs your funding 💲
==========================

[](#crunz-needs-your-funding-)

Support further Crunz development by [GitHub](https://github.com/sponsors/PabloKowalczyk).
------------------------------------------------------------------------------------------

[](#support-further-crunz-development-by-github)

Check [more info](https://github.com/crunzphp/crunz/issues/111).

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.

[![Version](https://camo.githubusercontent.com/1e24a9f96ce70933051d7d69ca8232107d2e36d6c5e1b04df44a15ea8fe86408/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372756e7a7068702f6372756e7a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crunzphp/crunz)[![Packagist](https://camo.githubusercontent.com/fba3d749dae2eb2b614658b8329706588f3bcfc05c4fd6905159ba660291ceba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6372756e7a7068702f6372756e7a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crunzphp/crunz/stats)[![Packagist](https://camo.githubusercontent.com/abda5de37933096e7eea241718701e56050c4ca963aab3e75f2d9568a942033c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6372756e7a7068702f6372756e7a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crunzphp/crunz/stats)

Roadmap
-------

[](#roadmap)

VersionRelease dateActive support untilBug support untilStatusv1.xApril 2016April 2019April 2020End of lifev2.xApril 2019April 2021April 2022End of lifev3.xApril 2021TBDTBDActive supportv4.xTBDTBDTBDDevelopmentInstallation
------------

[](#installation)

To install it:

```
composer require crunzphp/crunz
```

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

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

[](#how-it-works)

The idea is very simple: instead of 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:

```
