PHPackages                             bojaghi/cron - 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. bojaghi/cron

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

bojaghi/cron
============

WP-CRON API helper

1.0.1(1y ago)010GPL-2.0-or-laterPHPPHP &gt;=8.0

Since Apr 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bojaghi/cron)[ Packagist](https://packagist.org/packages/bojaghi/cron)[ Docs](https://github.com/bojaghi/cron)[ RSS](/packages/bojaghi-cron/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Bojaghi Cron
============

[](#bojaghi-cron)

WP Cron 설정을 도와주는 모듈입니다.

사용법
---

[](#사용법)

### Cron

[](#cron)

주기적으로 특정 동작을 실행하기 위한 WP-CRON 설정을 위한 모듈입니다. 생성자에 설정의 배열을 그대로 넣거나, 설정 배열을 리턴하는 파일의 경로를 문자열로 전달합니다.

```
// 직접 입력 방식
new Cron([ /* ... */]);

// 경로 지정 방식
new Cron('/path/to/config.php');
```

설정 배열 예입니다 아래는 경로 지정을 한 경우의 예제입니다.

```
/* /path/to/config.php */

if (!defined('ABSPATH')) exit;

// configuration array
return [
    'is_theme'  => false, // 테마에서 사용할 경우 'true' 이고 'main_file'은 무시합니다.
    'main_file' => '...', // 플러그인의 메인 파일입니다.
    'items'     => [
        [
            'timestamp'       => 0,      // 정확한 실행 시간을 넣거나, 0이면 활성화 시간으로 적당히 채워집니다.
            'schedule'        => '',     // 'daily', 'hourly' 같은 코어에 등록된 스케쥴 식별자.
            'hook'            => '',     // 실행할 훅.
            'args'            => [],     // Optional: 훅 실행시 전달될 인자.
            'wp_error'        => false,  // Optional: 에러 발생시 WP_Error 를 일으킬지 선택.
            'is_single_event' => false,  // Optional: 1회성 이벤트인지, 반복되는 이벤트인지 결정.
        ],
    ],
];
```

### CronSchedule

[](#cronschedule)

크론 설정 주기를 확장하기 위한 모듈입니다. 생성자에 설정의 배열을 그대로 넣거나, 설정 배열을 리턴하는 파일의 경로를 문자열로 전달합니다.

```
// 직접 입력 방식
new CronSchedule([ /* ... */]);

// 경로 지정 방식
new CronSchedule('/path/to/config.php');
```

설정 배열 예입니다 아래는 경로 지정을 한 경우의 예제입니다.

```
/* /path/to/config.php */

if (!defined('ABSPATH')) exit;

// configuration array
return [
    'items'     => [
        [
            'display'  => '', // 관리 화면 같은 프론트에 출력될 경우에 보여질 문자열입니다.
            'interval' => 0,  // 반복 주기를 0 보다 큰 정수로 입력합니다.
            'schedule' => '', // 코어에 등록될 스케쥴 문자열입니다 영소문자, 언더바, 숫자만 쓰는 것을 추천합니다.``
        ],
    ],
];
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance47

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

2

Last Release

393d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bbfd1d4316ffdccc98504cdbdd210c69a6add7dca21678ad402ccedb3ff4764?d=identicon)[ep6tri](/maintainers/ep6tri)

---

Top Contributors

[![chwnam](https://avatars.githubusercontent.com/u/6630320?v=4)](https://github.com/chwnam "chwnam (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bojaghi-cron/health.svg)

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

###  Alternatives

[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[robinvdvleuten/ulid

Universally Unique Lexicographically Sortable Identifier (ULID) implementation for PHP.

4583.6M29](/packages/robinvdvleuten-ulid)[bref/extra-php-extensions

Extra PHP extensions for your lambda application.

2244.3M8](/packages/bref-extra-php-extensions)[mageplaza/magento-2-seo-extension

Magento 2 SEO extension

138506.6k2](/packages/mageplaza-magento-2-seo-extension)[mattketmo/camel

Tiny library to handle words case transformation

29357.0k17](/packages/mattketmo-camel)

PHPackages © 2026

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