PHP code example of liquidrazor / kernel-state-events
1. Go to this page and download the library: Download liquidrazor/kernel-state-events library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
liquidrazor / kernel-state-events example snippets
declare(strict_types=1);
use LiquidRazor\KernelStateEvents\Event\KernelBootingEvent;
use LiquidRazor\KernelStateEvents\Value\KernelIdentity;
$event = new KernelBootingEvent(new KernelIdentity('kernel.main'));
$event->kernelIdentity(); // KernelIdentity('kernel.main')
$event->state(); // KernelState::Booting