silencenjoyer / silence-kernel
Silence application kernel.
0.0.3
2025-07-22 13:39 UTC
Requires
- php: ^8.3.0
- nyholm/psr7: ^1.8.0
- psr/container: ^2.0
- psr/event-dispatcher: ^1.0
- psr/http-factory: ^1.0.0
- silencenjoyer/silence-config: ^0.0
- silencenjoyer/silence-error-handling: ^0.0
- silencenjoyer/silence-event: ^0.0
- silencenjoyer/silence-http: ^0.0
- silencenjoyer/silence-http-parser: ^0.0
- silencenjoyer/silence-kernel-extension: ^0.0
- silencenjoyer/silence-routing: ^0.0
- silencenjoyer/silence-runtime: ^0.0
- symfony/config: ^7.3
- symfony/dependency-injection: ^7.3.0
- symfony/dotenv: ^7.3
Requires (Dev)
- phpstan/phpstan: *
- shipmonk/composer-dependency-analyser: dev-master
- symfony/var-dumper: ^7.3
README
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.