Download the PHP package yunadmin/cron-schedule without Composer

On this page you can find all versions of the php package yunadmin/cron-schedule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cron-schedule

yunadmin/cron-schedule

PHP CRON 表达式解析与运行时间计算库,支持 PHP 8.0+。

功能特性

安装

本项目已通过 PSR-4 自动加载(YunAdmin\CronSchedule\ → src/)。 若作为本地包使用,可在主项目的 composer.json 中配置:

然后执行 composer dump-autoload。

快速开始

使用方式详解

1. 解析表达式

宏别名会被自动展开:

2. 计算运行时间

3. 判断是否到期

4. 校验表达式

5. 表达式规范化和可读描述

6. 异常与错误处理

表达式语法速查

符号 含义 示例
* 任意值 * 每分钟/每小时
, 枚举多个值 1,15,30
- 范围 9-17(9 点到 17 点)
/ 步长 */15(每 15 分钟)、0-30/10
? 不指定(日与周二选一留空) 0 0 ? * 1
L 最后一天 / 最后一个星期几 0 0 L * *、0 0 * * 5L
W 最近的工作日 0 0 15W * *
# 第 n 个星期几(n 取 1–5) 0 0 * * 2#1(第一个星期二,编号 1=周一 … 7/0=周日)
名称字面量 月份/星期 JAN-DEC、MON-SUN

字段顺序(5 段):分 时 日 月 周 字段顺序(6 段):秒 分 时 日 月 周

星期中 0 与 7 均表示星期日;「日」与「星期」同时指定具体值时,采用「任一满足即可」的语义。

许可证

MIT


All versions of cron-schedule with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yunadmin/cron-schedule contains the following files

Loading the files please wait ...