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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package light

Dotkernel Light

Dotkernel Light is the smallest complete Mezzio application — a PSR-15 pipeline, routing and templating, with nothing to strip out. A real starting point for a simple site.

Check out our demo.

Badges

OSS Lifecycle Packagist Dependency Version

GitHub issues GitHub forks GitHub stars GitHub license

Continuous Integration codecov Qodana Build Assets

PHPStan PHPstan Level

What's Inside

Light is built on Mezzio and Laminas components, around the PSR standards:

Concern Standard Implementation
Containers PSR-11 Laminas Service Manager
HTTP messages PSR-7 Laminas Diactoros
Middleware pipeline PSR-15 Mezzio
Routing — FastRoute
Templating — Twig, through Mezzio TwigRenderer

Two Dotkernel components are registered out of the box in config/config.php:

The Dotkernel Family

Dotkernel is a collection of open-source PHP application skeletons built on Mezzio and Laminas, which can be adopted separately or together:

Documentation

Documentation is available at: https://docs.dotkernel.org/light-documentation/

Contents

Requirements

npm ships bundled with Node.js, so any supported Node.js release provides a compatible npm.

The exact Node.js versions the interface is built against are defined by the matrix in .github/workflows/build-assets.yml, which is the authoritative list.

The following paths must be writable by the user the web server runs as:

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

Example:

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.

Composer creates the directory, installs the application with its dependencies, and enables development mode — all in one step:

Installation Prompts

During installation, the laminas/laminas-component-installer Composer plugin prompts for some configuration settings, for example the lines below:

Select [0] Do not inject. Dotkernel registers the config providers it needs explicitly in config/config.php, so automatic injection is not required.

If you choose [1] config/config.php, the ConfigProvider will be appended to that file instead.

The next question is:

Remember this option for other packages of the same type? (Y/n)

You should enter y and press Enter, so you are not asked again for every remaining component.

This choice is remembered for all subsequent components, not just this one. If you later install a package whose ConfigProvider does need to be registered, add it to config/config.php yourself.

Finally, make sure your local configuration file exists:

A Composer hook normally creates this file for you, but it is registered on post-update-cmd only, so it does not run for installs performed from an existing composer.lock. The file is git-ignored and holds your local settings — application.url and the page routes are defined here and nowhere else.

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.

composer create-project already runs this for you, so you only need it after a composer development-disable. Run composer development-status to check which mode you are in.

Bundling Static Modules

Prerequisite software: Node.js ^20.19.0 || >=22.12.0

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.

While actively working on the assets, this command rebuilds them on every change instead of requiring a manual rebuild:

Running the Application

For a quick look, PHP's built-in server is enough:

The application is then available at http://localhost:8080.

For anything beyond that, we recommend running your applications in WSL:

You should see the Dotkernel Light welcome page.

NOTE:

If config-cache.php is present that config will be loaded regardless of the ConfigAggregator::ENABLE_CACHE in config/autoload/mezzio.global.php

Testing and Code Quality

Run every check at once — coding standard, Twig coding standard, static analysis and unit tests:

The individual commands are also available:

Command Purpose
composer cs-check / composer cs-fix PHP coding standard (Laminas Coding Standard)
composer twig-cs-check / composer twig-cs-fix Twig template coding standard
composer static-analysis PHPStan, level 8
composer test PHPUnit test suite

Going Live

Before deploying to production, rename the robots file and adjust it for your site:

Resources


All versions of light with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0 || ~8.4.0 || ~8.5.0
dotkernel/dot-errorhandler Version ^5.0.0
laminas/laminas-component-installer Version ^3.5.0
laminas/laminas-config-aggregator Version ^1.17.0
mezzio/mezzio Version ^3.24.0
mezzio/mezzio-fastroute Version ^3.13.0
mezzio/mezzio-twigrenderer Version ^2.17.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dotkernel/light contains the following files

Loading the files please wait ...