aatis / kernel
There is no license information available for the latest version (1.4.0) of this package.
Kernel of Aatis
1.4.0
2024-11-06 20:23 UTC
Requires
- aatis/dependency-injection: ^1.5
- aatis/error-handler: ^1.0
- aatis/http-foundation: ^1.0
- aatis/logger: ^1.0
- aatis/routing: ^2.0
- vlucas/phpdotenv: ^5.6
README
Advertisement
This package is a part of Aatis
and can't be used without the following packages :
aatis/dependency-injection
(https://github.com/BatMaxou/aatis-dependency-injection)aatis/http-foundation
(https://github.com/BatMaxou/aatis-http-foundation)aatis/routing
(https://github.com/BatMaxou/aatis-routing)aatis/logger
(https://github.com/BatMaxou/aatis-logger)aatis/error-handler
(https://github.com/BatMaxou/aatis-error-handler)
Installation
composer require aatis/kernel
Usage
Requirements
Initialize Aatis
packages (see the README of each package)
Basic usage
If needed, create a kernel class and extend the Aatis Kernel
:
use Aatis\Kernel as BaseKernel; class Kernel extends BaseKernel { public function handle(Request $request): void { // extra process parent::handle($request); // extra process } }
Or use it directly :
$request = Request::createFromGlobals(); (new Kernel())->handle($request);