PHPackages                             ajbdev/cronlingo - 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. ajbdev/cronlingo

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

ajbdev/cronlingo
================

Express crontabs as human readable phrases

v0.1.1(10y ago)14651.4k—0%4MITPHP

Since Dec 11Pushed 10y ago7 watchersCompare

[ Source](https://github.com/ajbdev/cronlingo)[ Packagist](https://packagist.org/packages/ajbdev/cronlingo)[ RSS](/packages/ajbdev-cronlingo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/6242413d84fe3a97ec5d7b25931d5a5f89745c38a038c770b297a2415531e5af/68747470733a2f2f7472617669732d63692e6f72672f616a626465762f63726f6e6c696e676f2e706e67)](https://travis-ci.org/ajbdev/cronlingo)

CRON Lingo
==========

[](#cron-lingo)

CronLingo turns human readable strings about time and turns them into valid crontabs.

Examples:

```
echo CronLingo::fromExpression('Every day at midnight');
// "0 0 * * *"

echo CronLingo::fromExpression('Every 15 minutes at midnight on the weekend');
// "*/15 0 * * 0,6"

echo CronLingo::fromExpression('Every other minute in August at noon on a weekday');
// "*/2 12 * 8 1,2,3,4,5"

echo CronLingo::fromExpression('The 1st day in April at midnight');
// "0 0 1 4 *"

echo CronLingo::fromExpression('Every day on the weekday at 2:25pm');
// "25 14 * * 1,2,3,4,5"
```

Syntax
------

[](#syntax)

CronLingo identifies the parts of a string with specific time-related keywords such as "on, to, at" and uses this to deduce the time meaning and convert it into part of a cron tab. It's not particular about the order of these statements. Here's a brief list of things that it will pick up and parse into a crontab:

- Periods (daily, weekly, monthly)
- Exact times (9:30 PM, 8a, 3p)
- Meridiems (AM/PM/A/P)
- Intervals (1st, second, other, ninth, etc)
- Specific fields (second, minute, hour, day, month)
- Day of week (sunday, monday, etc)
- 12 o'clocks (noon, midnight)
- Lists (e.g., 5 to 12 minutes)
- Month names (january, february, etc)
- Weekend / weekday

What's a cron tab?
------------------

[](#whats-a-cron-tab)

A cron tab is an expression that defines a recurring period of time.

It looks something like this:

```
*    *    *    *    *
-    -    -    -    -
|    |    |    |    |
|    |    |    |    +----- day of week (0 - 7) (Sunday=0 or 7)
|    |    |    +---------- month (1 - 12)
|    |    +--------------- day of month (1 - 31)
|    +-------------------- hour (0 - 23)
+------------------------- min (0 - 59)

```

From [Wikipedia](https://en.wikipedia.org/wiki/Cron):

The software utility Cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like connecting to the Internet and downloading email at regular intervals.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

2

Last Release

3811d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b0842f020a6b6eb2158be81dd79dae672267fada8c073ee5861febfcbfbfbbe?d=identicon)[ajbdev](/maintainers/ajbdev)

---

Top Contributors

[![ajbdev](https://avatars.githubusercontent.com/u/572055?v=4)](https://github.com/ajbdev "ajbdev (21 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ajbdev-cronlingo/health.svg)

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

###  Alternatives

[surfsidemedia/shoppingcart

Laravel Shoppingcart

1712.6k](/packages/surfsidemedia-shoppingcart)

PHPackages © 2026

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