silencenjoyer/silence-kernel

Silence application kernel.

0.0.3 2025-07-22 13:39 UTC

This package is auto-updated.

Last update: 2025-07-22 13:40:43 UTC


README

Latest Stable Version PHP Version Require License

The core of the Silence PHP framework, providing a configurable environment, basic application loading, integration with Symfony DependencyInjection, and application lifecycle management.

This package is part of the monorepository silencenjoyer/silence, but can be used independently.

βš™οΈ Installation

composer require silencenjoyer/silence-kernel

πŸš€ Quick start

$config = KernelConfig::withBasePath(dirname(__DIR__, 2))
    ->withExtensions([
        new RouteExtension(),
        new TwigExtension(),
    ])
;

(new Kernel($config))->run(); // launches the application

🧱 Features:

  • Support for environment configurations βš’οΈπŸ’ΌπŸ”„
  • PSR-11-compatible container (based on Symfony)
    • Simple mechanism for loading services and parameters
  • Starting point for the application 🏁

πŸ§ͺ Testing

php vendor/bin/phpunit

🧩 Use in the composition of Silence

The package is used as the basis for all applications and modules within the Silence ecosystem. If you are writing your own package, you can connect silencenjoyer/silence-kernel to manage dependencies and the environment.

πŸ“„ License

This package is distributed under the MIT licence. For more details, see LICENSE.