PHPackages                             jardisport/kernel - 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. jardisport/kernel

ActiveLibrary

jardisport/kernel
=================

DDD Kernel interfaces — DomainKernel, BoundedContext, ContextResponse, DomainResponse

v1.0.0(1mo ago)031↑2900%1proprietaryPHPPHP &gt;=8.2CI passing

Since Mar 29Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (7)Versions (3)Used By (1)

Jardis Kernel Port
==================

[](#jardis-kernel-port)

[![Build Status](https://github.com/jardisPort/kernel/actions/workflows/ci.yml/badge.svg)](https://github.com/jardisPort/kernel/actions/workflows/ci.yml/badge.svg)[![License: PolyForm Shield](https://camo.githubusercontent.com/d8fb46c82be4c5312bf3e372ac734dfdf6a8b328e9c2b2856af671adbb0600a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d506f6c79466f726d253230536869656c642d626c75652e737667)](LICENSE.md)[![PHP Version](https://camo.githubusercontent.com/a68b290dcc313d698dc138a1111aa83eee2f143605449d7e8b5416ea6f88558f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e322d3737374242342e737667)](https://www.php.net/)[![PHPStan Level](https://camo.githubusercontent.com/c51bda247654363d3e30bc352674dd761a9557803a14af0226eb411d6dc0006b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230382d627269676874677265656e2e737667)](phpstan.neon)[![PSR-12](https://camo.githubusercontent.com/34b10db0caa29bacd49bda5c437a8de95385f036f3230b31fa605326e18da22c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f64652532305374796c652d5053522d2d31322d626c75652e737667)](phpcs.xml)[![PSR-3](https://camo.githubusercontent.com/ae4f449289821749d54eae0b7049d14a137e80da8c8afb5930859eca90bb5e92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d332d4c6f672d626c75652e737667)](https://www.php-fig.org/psr/psr-3/)[![PSR-11](https://camo.githubusercontent.com/98be7eb7e57be670e94d2f798114804c0fa75a3c0435e17de37bee92cc966864/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d31312d436f6e7461696e65722d626c75652e737667)](https://www.php-fig.org/psr/psr-11/)[![PSR-14](https://camo.githubusercontent.com/ad320513b35a33c8e1b26659280cd1bdf4bbd3dbceabfdec8debaff5bea52295/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d31342d4576656e74253230446973706174636865722d626c75652e737667)](https://www.php-fig.org/psr/psr-14/)[![PSR-16](https://camo.githubusercontent.com/19b80673b3dc8065ce5caacac68f56ef79c8ed809ba2c017a36c6bb3ff37e039/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d31362d53696d706c6525323043616368652d626c75652e737667)](https://www.php-fig.org/psr/psr-16/)[![PSR-18](https://camo.githubusercontent.com/07f2407c14b606d22023b8c5e970a3afd744e71d1b5b367df2cd29372c7ec9cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d31382d48545450253230436c69656e742d626c75652e737667)](https://www.php-fig.org/psr/psr-18/)

> Part of the **[Jardis Business Platform](https://jardis.io)** — Enterprise-grade PHP components for Domain-Driven Design

DDD Kernel interfaces for the Jardis Business Platform.

---

Overview
--------

[](#overview)

This package defines the core DDD contracts:

InterfacePurpose`DomainKernelInterface`Typed, immutable access to infrastructure services (PSR + PDO)`BoundedContextInterface`Domain use case handler`ContextResponseInterface`Mutable transport accumulator for BC chains`DomainResponseInterface`Immutable final response from domain operationsAll interfaces use only **PSR standards + PDO** — zero Jardis dependencies.

---

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

[](#installation)

```
composer require jardisport/kernel
```

---

DomainKernelInterface
---------------------

[](#domainkernelinterface)

10 methods providing typed access to infrastructure:

MethodReturnsStandard`appRoot()``string`—`domainRoot()``string`—`env(?string $key)``mixed`—`container()``ContainerInterface`PSR-11`cache()``?CacheInterface`PSR-16`logger()``?LoggerInterface`PSR-3`eventDispatcher()``?EventDispatcherInterface`PSR-14`httpClient()``?ClientInterface`PSR-18`dbWriter()``?PDO`ext-pdo`dbReader()``?PDO`ext-pdoServices are nullable — not every project needs every service. The domain code checks availability and acts accordingly. Exception: `container()` is always available (never null).

---

Design Principles
-----------------

[](#design-principles)

- **Only PSR + PDO** — no Jardis-specific dependencies at the interface level
- **Immutable after bootstrap** — set once via constructor injection
- **No `get` prefix** — modern, fluent API (`cache()` not `getCache()`)
- **Nullable = optional** — `null` return IS the has-check

---

Related Packages
----------------

[](#related-packages)

PackageRole`jardiscore/kernel`Reference implementation of these interfaces---

License
-------

[](#license)

Jardis is source-available under the [PolyForm Shield License 1.0.0](LICENSE.md). Free for virtually every purpose — including commercial use.

---

*Jardis – Development with Passion**Built by [Headgent Development](https://headgent.com)*

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e07a1b668e9e01ee6d1b85de7b3be1c2513f68aae9494b2011d1592104d5daa0?d=identicon)[jardis](/maintainers/jardis)

---

Top Contributors

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

---

Tags

interfaceskernelddddomainHeadgentJardisPort

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jardisport-kernel/health.svg)

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[windwalker/framework

The next generation PHP framework.

25639.1k1](/packages/windwalker-framework)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)

PHPackages © 2026

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