juststeveking/micro-core
A collection of core components to be used within the micro boilerplate for slim framework.
Micro Core
A collection of core components to be used within the Micro boilerplate for slim framework.
The aim of this package is to provide a consistent way to start the SlimPHP project, allowing you to implement the concrete implementations based off of Interfaces provided by the core.
Interfaces
The main interface is our KernelContract, this is the entrypoint to the application. It is where Slim is built and where we add our container.
It is recommended here that you do something like this:
use JustSteveKing\Micro\Contracts\KernelContract;use JustSteveKing\Micro\Kernel;use Psr\Container\ContainerInterface;
return [ KernelContract::class => function (ContainerInterface $container) { return Kernel::boot( basePath: __DIR__ . '/../', // this is the path to the root of your project. container: $container, // this will be the build container. ); },];In the example above we are adding an entry into our container for the Kernel, using the default provided kernel and passing in the base options. You can easily override this Kernel class yourself - just ensure it implements the same Interface.
More Packages
juststeveking/companies-house-laravel
A Laravel wrapper to get companies house information and validate company numbers
v1.2.0
PHPjuststeveking/gtin-php
A PHP package for validating GTIN codes
v1.0.1
PHPjuststeveking/http-auth-strategies
A simple PHP package that is used to create different Http Auth Headers
v1.2.0