symplify/symplify-kernel
Shared kernel and infrastructure for Symplify tools. Provides common console/app bootstrapping, configuration loading, service container wiring, and utilities to build consistent PHP CLI applications and packages on top of Symplify components.
This package is an internal kernel—do not use it directly. If you’re a Laravel developer, you’ll only interact with it indirectly when installing Symplify tools (e.g., symplify/easy-coding-standard). Start by:
composer require symplify/easy-coding-standard --dev)💡 First use case: Run
./vendor/bin/ecs check srcafter installation. Thesymplify-kernellayer handles container initialization, config loading, and command registration automatically—no intervention required.
You’ll never extend or modify this kernel yourself, but consumer Symplify packages do rely on its patterns under the hood:
AbstractSymplifyKernel to register config paths (e.g., getConfigPaths() returns config files like config/set/coding-style.php)getContainerParameters() and registerSymfonyConfiguration()—allowing modular, layered config loading without framework bloatfindSymfonyConsoleCommands() and service autowiring logic🛠️ Laravel integration tip: If building a custom CLI tool, do not reach for this kernel. Instead, use Laravel’s native
Application+Bootstrap\HasDependenciesor community alternatives likesymplify/package-builder(actively maintained).
var/cache/)—clear caches (rm -rf var/cache/*) inside the consuming tool, not your project.composer require symplify/symplify-kernel will work but is unsupported, insecure, and breaks Symplify’s intended DI contracts.composer why symplify/symplify-kernel), then upgrade to actively maintained Symplify packages (e.g., symplify/rule-doc-generator → symplify/easy-ci).⚠️ Laravel-specific warning: This kernel predates modern Laravel service container practices. Avoid it—use
App::extend()or service providers instead. Trusting an archived kernel for core infrastructure is technical debt you cannot afford.
How can I help you explore Laravel packages today?