PHPackages                             deck/core - 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. deck/core

ActiveLibrary

deck/core
=========

Deck kernel: queue instrumentation and the job-execution recording event seam. Storage-free and UI-free; shared by deck/deck and deck/cloud.

00PHPCI passing

Since Aug 6Pushed todayCompare

[ Source](https://github.com/getdeckapp/core)[ Packagist](https://packagist.org/packages/deck/core)[ RSS](/packages/deck-core/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Deck Core
=========

[](#deck-core)

**The queue-instrumentation kernel behind [Deck](https://github.com/getdeckapp/deck).**

`deck/core` hooks Laravel's queue, records every job-execution lifecycle transition into a `JobExecutionRecord`, and fires a single `JobExecutionRecorded`event. It has **no database and no dashboard** — sinks subscribe to the event from other packages:

- [`deck/deck`](https://github.com/getdeckapp/deck) persists executions to your database and renders the dashboard.
- [`deck/cloud`](https://github.com/getdeckapp/cloud) streams them to Deck Cloud.

You normally don't install this package directly — you install `deck/deck` (full self-hosted app) or `deck/cloud` (slim agent), both of which require it.

What's in here
--------------

[](#whats-in-here)

- Queue payload stamping, the Deck bus dispatcher, and the queued-job handler.
- The recorder → `JobExecutionRecorded` event seam and the `JobExecutionRecorder`contract.
- Cache-based control primitives: cooperative cancellation, pending-job cancellation, and job-class blocking.
- The storage-free retry primitive (`JobExecutionRetry` + `JobExecutionRetryContext`).
- Shared data objects (`JobExecutionRecord`, `ObservabilitySnapshot`, …) and Horizon read helpers.

The cross-package contract
--------------------------

[](#the-cross-package-contract)

`Deck\Core\Events\JobExecutionRecorded` carrying `Deck\Core\Data\JobExecutionRecord`is the seam every sink builds on. Treat that DTO as a versioned public contract.

Requirements
------------

[](#requirements)

PHP 8.3+ · Laravel 11–13 · Redis (for cancel/block flags). [Horizon](https://laravel.com/docs/horizon) 5.x is optional and enables richer worker snapshots and failed-job retry.

Installation
------------

[](#installation)

```
composer require deck/core
```

The service provider (`Deck\Core\DeckCoreServiceProvider`) is auto-discovered.

Development
-----------

[](#development)

```
composer test
composer analyse
```

License
-------

[](#license)

MIT © [Tor Morten Jensen](https://github.com/tormjens). See [LICENSE.md](LICENSE.md).

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/16b2089f55ff5ab3154ef21caec78446d23b1515cc074d2d1c2bf184a9e64603?d=identicon)[tormjens](/maintainers/tormjens)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/deck-core/health.svg)

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

PHPackages © 2026

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