https://github.com/panlatent/cron-expression-descriptor
Converts cron expressions into human readable descriptions.
https://github.com/panlatent/cron-expression-descriptor
cron cron-expression crontab
Last synced: about 1 year ago
JSON representation
Converts cron expressions into human readable descriptions.
- Host: GitHub
- URL: https://github.com/panlatent/cron-expression-descriptor
- Owner: panlatent
- License: mit
- Created: 2019-03-06T14:08:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T16:40:56.000Z (over 3 years ago)
- Last Synced: 2025-04-17T06:45:44.758Z (about 1 year ago)
- Topics: cron, cron-expression, crontab
- Language: PHP
- Size: 56.6 KB
- Stars: 16
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Cron Expression Descriptor
===========================
Converts cron expressions into human readable descriptions in PHP.
[](https://travis-ci.org/panlatent/cron-expression-descriptor)
[](https://coveralls.io/github/panlatent/cron-expression-descriptor)
[](https://packagist.org/packages/panlatent/cron-expression-descriptor)
[](https://packagist.org/packages/panlatent/cron-expression-descriptor)
[](https://packagist.org/packages/panlatent/cron-expression-descriptor)
[](https://packagist.org/packages/panlatent/cron-expression-descriptor)
The library is PHP version of [bradymholt/cron-expression-descriptor (C#)](https://github.com/bradymholt/cron-expression-descriptor).
Installation
------------
It's recommended that you use [Composer](https://getcomposer.org/) to install this project.
```bash
$ composer require panlatent/cron-expression-descriptor
```
This will install the library and all required dependencies. The project requires **PHP 7.1** or newer.
Usage
-----
```php
echo (new Panlatent\CronExpressionDescriptor\ExpressionDescriptor('23 12 * JAN *'))->getDescription();
// OUTPUT: At 12:23 PM, only in January
```
Ports
------
This library has been ported to several other languages.
- C# - [https://github.com/bradymholt/cron-expression-descriptor](https://github.com/bradymholt/cron-expression-descriptor)
- JavaScript - [https://github.com/bradymholt/cRonstrue](https://github.com/bradymholt/cRonstrue)
- Java - [https://github.com/RedHogs/cron-parser](https://github.com/RedHogs/cron-parser)
- Java - [https://github.com/voidburn/cron-expression-descriptor](https://github.com/voidburn/cron-expression-descriptor)
- Ruby - [https://github.com/alpinweis/cronex](https://github.com/alpinweis/cronex)
- Python - [https://github.com/Salamek/cron-descriptor](https://github.com/Salamek/cron-descriptor)
- Go - [https://github.com/lnquy/cron](https://github.com/lnquy/cron)
License
-------
The Cron Expression Descriptor is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).