1. Go to this page and download the library: Download xervice/kernel 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/ */
xervice / kernel example snippets
namespace App\Kernel;
use Xervice\Kernel\KernelDependencyProvider as XerviceKernelDependencyProvider;
class KernelDependencyProvider extends XerviceKernelDependencyProvider
{
/**
* Service classes with key as service name
* e.g.
* myService => myservice::class
*
* @return array
*/
protected function getServiceList(): array
{
return [
'routing' => MyRoutingService::class
];
}
}