PHPackages                             lorisleiva/cron-translator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lorisleiva/cron-translator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lorisleiva/cron-translator
==========================

Makes CRON expressions human-readable

v0.5.1(3mo ago)3149.6M↓38.9%60[2 issues](https://github.com/lorisleiva/cron-translator/issues)[1 PRs](https://github.com/lorisleiva/cron-translator/pulls)20MITPHPPHP ^8.0CI failing

Since Jul 7Pushed 3mo ago6 watchersCompare

[ Source](https://github.com/lorisleiva/cron-translator)[ Packagist](https://packagist.org/packages/lorisleiva/cron-translator)[ Docs](https://github.com/lorisleiva/cron-translator)[ GitHub Sponsors](https://github.com/lorisleiva)[ RSS](/packages/lorisleiva-cron-translator/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (20)

CRON Translator
===============

[](#cron-translator)

⏰️ Makes CRON expressions human-readable

[![intro-rounded](https://user-images.githubusercontent.com/3642397/60768671-7d6c7100-a0be-11e9-8cee-8a8d2780d76f.png)](https://user-images.githubusercontent.com/3642397/60768671-7d6c7100-a0be-11e9-8cee-8a8d2780d76f.png)

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

[](#installation)

```
composer require lorisleiva/cron-translator
```

Usage
-----

[](#usage)

```
use Lorisleiva\CronTranslator\CronTranslator;

CronTranslator::translate('* * * * *');       // => Every minute
CronTranslator::translate('30 22 * * *');     // => Every day at 10:30pm
CronTranslator::translate('0 16 * * 1');      // => Every Monday at 4:00pm
CronTranslator::translate('0 0 1 1 *');       // => Every year on January the 1st at 12:00am
CronTranslator::translate('0 0 1 * *');       // => The 1st of every month at 12:00am
CronTranslator::translate('0 * * * 1');       // => Once an hour on Mondays
CronTranslator::translate('* 1-20 * * *');    // => Every minute 20 hours a day
CronTranslator::translate('0,30 * * * *');    // => Twice an hour
CronTranslator::translate('0 1-5 * * *');     // => 5 times a day
CronTranslator::translate('0 1 1-5 * *');     // => 5 days a month at 1:00am
CronTranslator::translate('*/2 * * * *');     // => Every 2 minutes
CronTranslator::translate('* 1/3 2 * *');     // => Every minute of every 3 hours on the 2nd of every month
CronTranslator::translate('1-3/5 * * * *');   // => 3 times every 5 minutes
CronTranslator::translate('1,2 0 */2 1,2 *'); // => Twice an hour every 2 days 2 months a year at 12am
```

You may also provide a locale as a second argument and whether to format the time using the 24-hour format as a third argument.

```
CronTranslator::translate('30 18 * * *', 'fr');       // => Chaque jour à 6:30pm
CronTranslator::translate('30 18 * * *', 'fr', true); // => Chaque jour à 18:30
```

The following locales are currently supported. Feel free to PR more locales if you need them. 🙂

- `ar` — Arabic
- `cs` — Czech
- `da` — Danish
- `de` — German
- `en` — English
- `es` — Spanish
- `fr` — French
- `hi` — Hindi
- `lv` — Latvian
- `nl` — Dutch
- `pl` — Polish
- `pt` — Portuguese
- `ro` — Romanian
- `ru` — Russian
- `sk` — Slovak
- `ua` — Ukrainian
- `vi` — Vietnamese
- `zh` — Simplified Chinese
- `zh-TW` — Traditional Chinese

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance81

Actively maintained with recent releases

Popularity66

Solid adoption and visibility

Community41

Growing community involvement

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 65.2% 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 ~163 days

Recently: every ~238 days

Total

16

Last Release

98d ago

PHP version history (3 changes)v0.2.1PHP ^7.3 || ^8.0

v0.3.0PHP ^7.4 || ^8.0

v0.4.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3642397?v=4)[Loris Leiva](/maintainers/lorisleiva)[@lorisleiva](https://github.com/lorisleiva)

---

Top Contributors

[![lorisleiva](https://avatars.githubusercontent.com/u/3642397?v=4)](https://github.com/lorisleiva "lorisleiva (73 commits)")[![Chris53897](https://avatars.githubusercontent.com/u/7104259?v=4)](https://github.com/Chris53897 "Chris53897 (11 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (3 commits)")[![pierreboissinot](https://avatars.githubusercontent.com/u/6716686?v=4)](https://github.com/pierreboissinot "pierreboissinot (3 commits)")[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (3 commits)")[![tiagof](https://avatars.githubusercontent.com/u/1729910?v=4)](https://github.com/tiagof "tiagof (2 commits)")[![ousid](https://avatars.githubusercontent.com/u/21012933?v=4)](https://github.com/ousid "ousid (2 commits)")[![grossmannmartin](https://avatars.githubusercontent.com/u/1177414?v=4)](https://github.com/grossmannmartin "grossmannmartin (1 commits)")[![Impeck](https://avatars.githubusercontent.com/u/1071117?v=4)](https://github.com/Impeck "Impeck (1 commits)")[![kbond](https://avatars.githubusercontent.com/u/127811?v=4)](https://github.com/kbond "kbond (1 commits)")[![brainformatik](https://avatars.githubusercontent.com/u/7414979?v=4)](https://github.com/brainformatik "brainformatik (1 commits)")[![benstigsen](https://avatars.githubusercontent.com/u/24865450?v=4)](https://github.com/benstigsen "benstigsen (1 commits)")[![michaeldyrynda](https://avatars.githubusercontent.com/u/558441?v=4)](https://github.com/michaeldyrynda "michaeldyrynda (1 commits)")[![michalkortas](https://avatars.githubusercontent.com/u/1836004?v=4)](https://github.com/michalkortas "michalkortas (1 commits)")[![nphuly](https://avatars.githubusercontent.com/u/30363683?v=4)](https://github.com/nphuly "nphuly (1 commits)")[![alexmartinfr](https://avatars.githubusercontent.com/u/19224681?v=4)](https://github.com/alexmartinfr "alexmartinfr (1 commits)")[![asika32764](https://avatars.githubusercontent.com/u/1639206?v=4)](https://github.com/asika32764 "asika32764 (1 commits)")[![reyostallenberg](https://avatars.githubusercontent.com/u/3579090?v=4)](https://github.com/reyostallenberg "reyostallenberg (1 commits)")[![salvis-bluzma](https://avatars.githubusercontent.com/u/291385070?v=4)](https://github.com/salvis-bluzma "salvis-bluzma (1 commits)")[![saurabhsharma2u](https://avatars.githubusercontent.com/u/41580629?v=4)](https://github.com/saurabhsharma2u "saurabhsharma2u (1 commits)")

---

Tags

cronexpressionhuman

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lorisleiva-cron-translator/health.svg)

```
[![Health](https://phpackages.com/badges/lorisleiva-cron-translator/health.svg)](https://phpackages.com/packages/lorisleiva-cron-translator)
```

###  Alternatives

[dragonmantank/cron-expression

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

4.7k510.8M733](/packages/dragonmantank-cron-expression)[spatie/regex

A sane interface for php's built in preg\_\* functions

1.1k19.8M70](/packages/spatie-regex)[symfony/scheduler

Provides scheduling through Symfony Messenger

9114.1M115](/packages/symfony-scheduler)[mybuilder/cronos

Configure Cron task through PHP

156536.9k2](/packages/mybuilder-cronos)[magemojo/m2-ce-cron

Replacement package for Magento 2 Cron Functionality

163331.1k](/packages/magemojo-m2-ce-cron)[icecave/repr

A library for generating string representations of any value, inspired by Python's reprlib library.

287.6M4](/packages/icecave-repr)

PHPackages © 2026

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