PHPackages                             nabeghe/cronark - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. nabeghe/cronark

ActiveLibrary[Queues &amp; Workers](/categories/queues)

nabeghe/cronark
===============

A lightweight, cron-based background job scheduler and worker manager for PHP.

v0.2.4(1mo ago)216MITPHPPHP &gt;=8.1

Since Feb 5Pushed 1mo agoCompare

[ Source](https://github.com/nabeghe/cronark)[ Packagist](https://packagist.org/packages/nabeghe/cronark)[ Docs](https://github.com/nabeghe/cronark)[ RSS](/packages/nabeghe-cronark/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Cronark
=======

[](#cronark)

**A lightweight, cron-based background job scheduler and worker manager for PHP.**

Cronark provides a simple yet powerful solution for running background jobs in PHP applications. Unlike traditional queue systems that require external services (Redis, RabbitMQ, Beanstalkd), Cronark works with just **cron** and **minimal storage**; making it perfect for shared hosting, small to medium projects, or anywhere you want to avoid infrastructure complexity.

---

🎯 Why Cronark?
--------------

[](#-why-cronark)

### The Problem with Traditional Queue Systems

[](#the-problem-with-traditional-queue-systems)

Most PHP queue solutions come with significant challenges:

- **❌ Infrastructure Overhead**: Require Redis, RabbitMQ, or other external services
- **❌ Shared Hosting**: Not available on most shared hosting environments
- **❌ Complexity**: Learning curve, configuration, and maintenance burden
- **❌ Resource Heavy**: Memory consumption and process management complexity
- **❌ Overkill**: Too much for simple background job needs

### The Cronark Solution

[](#the-cronark-solution)

Cronark takes a different approach:

- **✅ Zero Dependencies**: Just PHP 8.1+ and cron (available everywhere)
- **✅ Shared Hosting Friendly**: Works on any hosting with cron access
- **✅ Simple Setup**: Define jobs, register with cron, done
- **✅ Lightweight**: Minimal resource footprint
- **✅ Process-Safe**: Prevents duplicate worker execution automatically
- **✅ Flexible Storage**: File-based by default, easily customizable to database or Redis

---

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require nabeghe/cronark
```

Requirements:

- PHP 8.1 or higher
- Cron access (available on virtually all hosting providers)

🚀 Quick Start
-------------

[](#-quick-start)

### 1. Create a Job

[](#1-create-a-job)

```
