PHPackages                             sympress/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. [Framework](/categories/framework)
4. /
5. sympress/kernel

ActiveLibrary[Framework](/categories/framework)

sympress/kernel
===============

WordPress kernel and shared service container built on Symfony DependencyInjection.

1.1.0(1mo ago)127710GPL-2.0-or-laterPHPPHP ^8.5CI passing

Since Jun 14Pushed 1w agoCompare

[ Source](https://github.com/SymPress/kernel)[ Packagist](https://packagist.org/packages/sympress/kernel)[ RSS](/packages/sympress-kernel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (16)Versions (3)Used By (10)

SymPress Kernel
===============

[](#sympress-kernel)

[![Checks](https://camo.githubusercontent.com/a43f71ee8919d9385c1d32e009505ac3ee620f70dcdd2306871b2d0b2a107527/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f53796d50726573732f6b65726e656c2f71612e796d6c3f6272616e63683d6d61696e266c6162656c3d636865636b73)](https://github.com/SymPress/kernel/actions/workflows/qa.yml) [![Release](https://camo.githubusercontent.com/ae511048c5e6569e553b2fdd140ea8a5aa6b108ae7fba23d15300ee7029aa180/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f53796d50726573732f6b65726e656c3f6c6162656c3d72656c65617365)](https://github.com/SymPress/kernel/releases) [![PHP](https://camo.githubusercontent.com/cf6867c4b816c9b8046ed55cd93c8c1243722ed14887ef9f775b374be7c68c4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f73796d70726573732f6b65726e656c2f7068702e7376673f6c6162656c3d706870)](https://packagist.org/packages/sympress/kernel) [![Downloads](https://camo.githubusercontent.com/1311fec891ccde4014c6aedf40762e2d0fff5d0221bcf0452c1b9655b6ce3966/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d70726573732f6b65726e656c2e7376673f6c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/sympress/kernel/stats) [![License: GPL-2.0-or-later](https://camo.githubusercontent.com/26f8b6541ea045cc1dbc2267208158b5a7ebbf5cf437c4b486d80fee9386f77e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d322e302d2d6f722d2d6c617465722d626c75652e737667)](LICENSE)

`sympress/kernel` is the foundation package for SymPress. It gives WordPress projects one Symfony-powered application kernel, one shared dependency injection container, and a predictable way for Composer packages, plugins, MU plugins, and themes to contribute services.

WordPress stays the runtime. The kernel adds structure around bootstrapping, configuration, hooks, console commands, package discovery, and compiled service containers.

Why This Exists
---------------

[](#why-this-exists)

WordPress projects often grow through plugin boot files, global functions, and runtime hook registration. That works well at small scale, but it becomes hard to test and hard to reason about once several packages need to collaborate.

The kernel keeps the parts WordPress is good at:

- the normal plugin, MU plugin, and theme lifecycle
- WordPress hooks as the integration boundary
- Composer packages that can be adopted one at a time

Then it adds the Symfony patterns that pay off in larger codebases:

- constructor-injected services
- bundle-level configuration
- compiler passes and autoconfiguration
- declarative hooks
- cached runtime containers
- Symfony-compatible bundle lifecycle hooks
- resettable services and service subscribers
- testable package boundaries

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

[](#requirements)

- PHP `^8.5`
- Composer
- WordPress
- Symfony DependencyInjection `^8.1`, Config, Console, Filesystem, Routing, Service Contracts, EventDispatcher, Clock, ExpressionLanguage, and Yaml components

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

[](#installation)

```
composer require sympress/kernel
```

Boot the kernel from an MU plugin or another early WordPress bootstrap file:

```
