Download the PHP package dotkernel/light without Composer
On this page you can find all versions of the php package dotkernel/light. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dotkernel/light
More information about dotkernel/light
Files in dotkernel/light
Package light
Short Description Dotkernel Light Application
License MIT
Homepage https://github.com/dotkernel/light
Informations about the package light
Dotkernel Light
Dotkernel Light is a PSR-15 compliant application (skeleton) using Mezzio microframework and Laminas components. It's designed as a minimal project to generate a simple website, like a presentation site.
Check out our demo.
Documentation
Documentation is available at: https://docs.dotkernel.org/light-documentation/
Badges
Installing Dotkernel light
- Installing Dotkernel
light
- Composer
- Choose a destination path for Dotkernel
light
installation - Installing Dotkernel light
- Testing (Running)
Tools
Dotkernel light interface has been tested with npm v10.0.4 and Node.js v20.11.0.
Composer
Installation instructions:
If you have never used composer before make sure you read the
Composer Basic Usage
section in Composer's documentation
Choosing an installation path for Dotkernel light
Example:
- absolute path
/var/www/dk
- or relative path
dk
(equivalent with./dk
)
Installing Dotkernel light
After you choose the path for Dotkernel light (dk
will be used for the remainder of this example), let's move onto installation.
Installing Dotkernel light
using git clone
This method ensures that the default branch is installed, even if it is not released. Run the following command:
The dependencies have to be installed separately, by running this command:
The setup script prompts for some configuration settings, for example the lines below:
Simply select [0] Do not inject
, because Dotkernel includes its own configProvider which already contains the prompted configurations.
If you choose [1] config/config.php
Laminas's ConfigProvider
will be injected.
The next question is:
Remember this option for other packages of the same type? (Y/n)
You should enter y
and press Enter
.
Development mode
Run this command to enable dev mode by turning debug flag to true
and turning configuration caching to off
. It will also make sure that any existing config cache is cleared.
- If not already done, remove the
.dist
extension fromconfig/autoload/development.local.php.dist
.
Bundling Static Modules
Prerequisite software: Node.js v20 (minimum supported version)
To install dependencies into the node_modules
directory run this command.
If npm install
fails, this could be caused by user permissions of npm.
We recommend installing npm through Node Version Manager
.
You can skip the next step until you make changes in the
src/App/assets
folder
The build command compiles the components from the src/App/assets
folder into the public
folder.
This command overwrites existing files in the
public
folder.
Running the application
We recommend running your applications in WSL:
- make sure you have WSL installed on your system
- currently we provide a distro implementations for AlmaLinux9
- install the application in a virtualhost as recommended by the chosen distro
- set
$baseUrl
in config/autoload/local.php to the address of the virtualhost - run the application by opening the virtualhost address in your browser
You should see the Dotkernel light
welcome page.
NOTE:
- If you are getting exceptions or errors regarding some missing services, try running the following command:
If
config-cache.php
is present that config will be loaded regardless of theConfigAggregator::ENABLE_CACHE
inconfig/autoload/mezzio.global.php
All versions of light with dependencies
dotkernel/dot-errorhandler Version ^4.2.1
laminas/laminas-component-installer Version ^3.5.0
laminas/laminas-config-aggregator Version ^1.17.0
mezzio/mezzio Version ^3.20.1
mezzio/mezzio-fastroute Version ^3.12.0
mezzio/mezzio-twigrenderer Version ^2.17.0