PHP_CodeSniffer or phpcs is a tool that helps developers maintain a specific standard in the way they write code. In order to be able to provide relevant information, phpcs needs to be configured correctly in PHPStorm (see image). Whether you … Read More
Author Archives: Merlin
What is cross origin token redemption?
What is cross origin token redemption? Cross-origin token redemption is a technique used to ensure the security and authenticity of a token that is issued by one website or domain, but intended for use on a different website or domain. … Read More
AlmaLinux 9 in WSL2 : install PHP, Apache, MariaDB, Composer, PhpMyadmin
In this article we will demonstrate how we install AlmaLinux 9 using Windows Subsystem for Linux (WSL2). First, you need to check if your machine is ready for using WSL2. Open Windows Terminal and execute the following command: The output … Read More
Mezzio app development in WSL2
Install a Mezzio app (DotKernel API) using WSL2 This article will run you through the steps of installing a Mezzio application (DotKernel API) in WSL2 and run it on Ubuntu 20.04 LTS. Step 1: Make sure you have WSL2 installed … Read More
Creating admin accounts in DotKernel API
Creating admin accounts in DotKernel API Starting from v3, DotKernel API introduces support for admin accounts. In this article we will describe two different methods of creating an admin account. … Read More
List available endpoints in DotKernel API using dot-cli
Displaying DotKernel API endpoints using dot-cli Starting from version 3, DotKernel API uses dot-cli to display a list of available endpoints. Usage Run the following command in your application’s root directory: The command runs through all routes and extracts endpoint … Read More
Using Postman for documentation in DotKernel API 3
Using Postman documentation in DotKernel API 3 Starting from version 3.0 DotKernel API provides it’s documentation using Postman. In this article we will go into the details of creating and maintaining your application’s documentation. … Read More
Replacing dot-console with dot-cli based on laminas-cli
Replacing dot-console with dot-cli based on laminas-cli Implementing dot-cli in your application DotKernel’s dot-cli package comes as a replacement for dot-console, which was abandoned after Laminas abandoned their laminas-console package, that dot-console was based on. … Read More
CORS policy setup in Dotkernel using mezzio-cors
CORS policy setup in Dotkernel using mezzio-cors Error message Access to fetch at RESOURCE_URL from origin ORIGIN_URL has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Most developers have encountered this error when interacting … Read More … Read More