PHPackages                             maartenvr98/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. [Queues &amp; Workers](/categories/queues)
4. /
5. maartenvr98/crunz

ActiveLibrary[Queues &amp; Workers](/categories/queues)

maartenvr98/crunz
=================

Schedule your tasks right from the code.

v3.4.2(3y ago)0802MITPHPPHP &gt;=7.4

Since Apr 12Pushed 3y agoCompare

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

READMEChangelog (5)Dependencies (14)Versions (84)Used By (0)

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/96b6a9947a6dd9efba4cca3c52b99b744205ecad8c7e47026978fe2699d76c40/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61766172792f6372756e7a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lavary/crunz)[![Packagist](https://camo.githubusercontent.com/46595680d98de82f36deb090462d3c4e6132f39ff8449f5e5353cd6e7ade7c34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61766172792f6372756e7a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lavary/crunz/stats)[![Packagist](https://camo.githubusercontent.com/bccb63d62bdc9c6a9a9be2e3c7a11a7a5a4e4c9973fd51e82a129df19c511be8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6c61766172792f6372756e7a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lavary/crunz/stats)

VersionSupported PHP versionsdev v3 (v3.2-dev)[![7.4+](https://camo.githubusercontent.com/629a1c82fb3c3a0301fb0f45c539b474d903c0a4b321ad2ee98d49b2e05eeba3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e342d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/629a1c82fb3c3a0301fb0f45c539b474d903c0a4b321ad2ee98d49b2e05eeba3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e342d626c75652e7376673f7374796c653d666c61742d737175617265)stable v3 (v3.1.0)[![7.4+](https://camo.githubusercontent.com/629a1c82fb3c3a0301fb0f45c539b474d903c0a4b321ad2ee98d49b2e05eeba3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e342d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/629a1c82fb3c3a0301fb0f45c539b474d903c0a4b321ad2ee98d49b2e05eeba3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e342d626c75652e7376673f7374796c653d666c61742d737175617265)stable v2 (v2.3.1)[![7.2+](https://camo.githubusercontent.com/55381e09cd85db172582d7d3e0b3fbc12b999e8b94219924f235846cdbfd4789/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e322d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/55381e09cd85db172582d7d3e0b3fbc12b999e8b94219924f235846cdbfd4789/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e322d626c75652e7376673f7374796c653d666c61742d737175617265)stable v1 (v1.12.4)[![5.6-7.0+](https://camo.githubusercontent.com/206b2543b4c61fc742dec3103864aa4f17ba7072e67eefff98ea7f3adf91e08a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545352e36253230253743253743253230253545372e302d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/206b2543b4c61fc742dec3103864aa4f17ba7072e67eefff98ea7f3adf91e08a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545352e36253230253743253743253230253545372e302d626c75652e7376673f7374796c653d666c61742d737175617265)Roadmap
-------

[](#roadmap)

VersionRelease dateActive support untilBug support untilStatusv1.xApril 2016April 2019April 2020End of lifev2.xApril 2019April 2021April 2022Bug supportv3.xApril 2021April 2023April 2024Active supportInstallation
------------

[](#installation)

To install it:

```
composer require maartenvr98/crunz:dev-master -W
```

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:

```
