PHPackages                             mylk/chronis - 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. mylk/chronis

ActiveProject

mylk/chronis
============

A crontab generator using natural language expressions

0.8.1(6y ago)27GPL-2.0PHPPHP &gt;=7.0.0CI failing

Since Jun 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mylk/chronis)[ Packagist](https://packagist.org/packages/mylk/chronis)[ Docs](http://github.com/mylk/chronis)[ RSS](/packages/mylk-chronis/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (8)Versions (14)Used By (0)

Chronis
=======

[](#chronis)

As `cron` expressions are not easy to understand and write, `Chronis` will help you define cron jobs using natural language and will generate crontab files for you.

This will also allow you to `verison control` your cron job definitions in a structured file (YAML) and generate crontabs during your `deployment` process.

Usage
-----

[](#usage)

### Prerequisites

[](#prerequisites)

PHP 7 is required for `Chronis` to run.

### Installing

[](#installing)

To include `Chronis` in your PHP project:

```
composer require mylk/chronis

```

You can also install `Chronis` as a global command and not as a project's dependency:

```
composer global require mylk/chronis

```

### Run

[](#run)

To execute `Chronis` and get some help:

```
vendor/bin/chronis list

```

To execute `Chronis` when installed as a global command, first make sure that `$HOME/.config/composer/vendor/bin/` is in your system's `$PATH`. Then you can execute `Chronis` from anywhere:

```
chronis list

```

Then, you will need to have a `yaml` file to define your cron jobs. You can begin with [this](https://github.com/mylk/chronis/blob/master/config/chronis.example.yaml) as an example.

To dump the crontab:

```
vendor/bin/chronis dump --config=YOUR_YAML_FILE_PATH

```

To export the crontab:

```
vendor/bin/chronis export --config=YOUR_YAML_FILE_PATH --output=my_crontab

```

The `--output` argument is not necessary. If not given, the crontab will be exported to a file named `crontab` in the current directory.

Contributing
------------

[](#contributing)

`Chronis` is open source and of course you can contribute. Just fork the project, have fun and then create a pull request.

A `Makefile` has been created to group some tasks needed for development. Find those tasks below.

### Running the tests

[](#running-the-tests)

```
make tests

```

### Syntax checks

[](#syntax-checks)

```
make check-syntax

```

### Coding style checks

[](#coding-style-checks)

The coding style that is followed is [PSR-2](https://www.php-fig.org/psr/psr-2/).

```
make check-style

```

### Quality checks

[](#quality-checks)

```
make check-quality

```

Built With
----------

[](#built-with)

- [symfony/console](https://symfony.com/components/Console) - The library used for the command line interface
- [bpolaszek/natural-cron-expression](https://github.com/bpolaszek/natural-cron-expression) - The library that converts the natural language to cron expressions
- [symfony/yaml](https://symfony.com/components/Yaml) - The library used to read the YAML configuration of your cron jobs
- [symfony/dependency-injection](https://symfony.com/components/DependencyInjection) - The library that instantiates the sevices used in the project

Versioning
----------

[](#versioning)

[SemVer](http://semver.org/) is used for versioning. For the versions available, see the [tags](https://github.com/mylk/chronis/tags).

Authors
-------

[](#authors)

See the list of [contributors](https://github.com/mylk/chronis/contributors).

License
-------

[](#license)

This project is licensed under the GPLv2 License - see the [LICENSE](LICENSE) file for details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

13

Last Release

2518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9326e724e424cee571bf719f8a2f9bafd4e389a16aff1a9e60c2340f45d39ddb?d=identicon)[mylk](/maintainers/mylk)

---

Top Contributors

[![mylk](https://avatars.githubusercontent.com/u/6269827?v=4)](https://github.com/mylk "mylk (23 commits)")

---

Tags

croncronjobscrontabphpsymfony-consolegeneratorcroncrontabgenerate

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mylk-chronis/health.svg)

```
[![Health](https://phpackages.com/badges/mylk-chronis/health.svg)](https://phpackages.com/packages/mylk-chronis)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M567](/packages/symfony-maker-bundle)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
