Converts cron expressions into human readable descriptions in PHP.
The library is PHP version of bradymholt/cron-expression-descriptor (C#).
It's recommended that you use Composer to install this project.
$ composer require panlatent/cron-expression-descriptor
This will install the library and all required dependencies. The project requires PHP 7.1 or newer.
echo (new Panlatent\CronExpressionDescriptor\ExpressionDescriptor('23 12 * JAN *'))->getDescription();
// OUTPUT: At 12:23 PM, only in January
This library has been ported to several other languages.
- C# - https://github.com/bradymholt/cron-expression-descriptor
- JavaScript - https://github.com/bradymholt/cRonstrue
- Java - https://github.com/RedHogs/cron-parser
- Java - https://github.com/voidburn/cron-expression-descriptor
- Ruby - https://github.com/alpinweis/cronex
- Python - https://github.com/Salamek/cron-descriptor
- Go - https://github.com/lnquy/cron
The Cron Expression Descriptor is open-sourced software licensed under the MIT license.