Understanding Middleware

Middleware is code that exists between the request and response, and which can take the incoming request, perform actions based on it, and either complete the response or pass delegation on to the next middleware in the queue. The purpose … Read More

Dotkernel Light improvements: PSR-15 Handlers, Vite, PHPStan

Dotkernel Light is a PSR-15 compliant application that uses the Mezzio microframework and Laminas components. It’s aimed at creating a simple website, like a presentation site, but can be expanded as needed. Dotkernel Light has come a long way since … Read More

Naming pattern for PSR-15 handlers in Dotkernel applications

This naming pattern is used in Dotkernel Admin v6 and will also be implemented in the next releases for Frontend and Light. The bigger a project is, the more time it will take to develop and the more people will … Read More

Replacing controllers with PSR-15 compliant handlers in Dotkernel Light

The goal of this update is to implement PSR-15 handlers into Dotkernel Light. There are several advantages to using handlers, which we will explore below. We strive to keep our applications up-to-date with the recommended design guidelines. This ensures that … Read More

Handling dynamic routing using FastRoute in Dotkernel

The goal of this update is to replace the static way of creating routes with a more dynamic implementation. The result is a cleaner approach that is easier to set up and review at a glance. RoutesDelegator.php is used to … Read More

Replacing laminas-mail with Symfony mailer in dot-mail

What prompted the change According to the discussion from the LaminasTechnical steering Committee of 2023-12-04, it was decided that the laminas/laminas-mail package would be abandoned. On the one hand, there is nobody to maintain the package and on the other, … Read More

Content Negotiation in Dotkernel REST API

Content negotiation is an important aspect of RESTful APIs to make it possible for diverse systems to work seamlessly together. It’s based on enabling clients and servers to agree on the format and language of data they exchange. What is … Read More

Static Analysis – Replacing Psalm with PHPStan

What is Static Analysis Static analysis (static code analysis or source code analysis) applies a set of coding rules to debug source code before a program is run. Applied in the early phase of code development, the goals of static … Read More

Doctrine enum implementation in Dotkernel

The update of doctrine/orm to version 3.2.0 saw the introduction of EnumType columns. The enum type was introduced in PHP 8.1. This new data type is now implemented in Dotkernel, on both the PHP side and the database side. Below … Read More

Dotkernel Light: the best choice for your presentation site

Dotkernel Light is a good starting point for a project if you want to have full control over the functionality it contains. It easily grows into something more complex with the integration of packages based on your requirements. Its out-of-box … Read More