定制 mylk/chronis 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mylk/chronis

Composer 安装命令:

composer create-project mylk/chronis

包简介

A crontab generator using natural language expressions

README 文档

README

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

Prerequisites

PHP 7 is required for Chronis to run.

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

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 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

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

make tests

Syntax checks

make check-syntax

Coding style checks

The coding style that is followed is PSR-2.

make check-style

Quality checks

make check-quality

Built With

Versioning

SemVer is used for versioning. For the versions available, see the tags.

Authors

See the list of contributors.

License

This project is licensed under the GPLv2 License - see the LICENSE file for details.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2019-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固