Installing AlmaLinux 10 in WSL2: PHP, MariaDB, Composer, PhpMyadmin
With the recent release of AlmaLinux OS 10, we have created a new recipe for our WSL development environment. Compared to its predecessor, AlmaLinux 10 provides performance enhancements, security updates and improved hardware support.
Implementation of SEO friendly URL in an generic Laminas Mezzio app
Prerequisites: Mezzio App Doctrine In the vast digital landscape of the internet, where websites compete for attention, having a well-crafted URL can make a significant difference. By incorporating human-readable slugs into website URLs, we can enhance user experience, improve search engine optimization (SEO), and foster better engagement.
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. This process is commonly used in situations where a user needs to access resources from multiple domains, such as when a user is logged in to one website and needs to access resources from another website.
Generating a doctrine migration without dropping custom tables
Generating a doctrine migration without dropping custom tables If your application needs to hold some custom (unmapped) tables in the database, then generating migrations with doctrine-migrations diff will try to drop the custom tables. This article provides a solution on how to avoid dropping those tables.
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.
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: php .
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.
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. Setup Install package Run the following command in your application's root directory: composer require dotkernel/dot-cli Register ConfigProvider Open your application's config/config.
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 with APIs.
Doctrine Cache in Mezzio and Dotkernel
Doctrine caching in DotKernel Following version 2 of doctrine/cache, in 2024 we published an update to this article here: https://www.dotkernel.
Migrating DotKernel 3 from Zend Expressive 2 to Zend Expressive 3
This article covers the steps required to migrate a DotKernel 3 instance to the latest Zend Expressive Version. Migration from Zend Expressive 2 to 3.
Using the URLGenerator work in FastRoute
DotKernel 3 uses FastRoute under the hood, which is an excellent and fast routing package, but it does have some quirks. A wrong setup can lead to many headaches, as it's not prominent that the error you're experiencing is from FastRoute, and you may not know where exactly to look for the cause.
Database migrations and how to use them
Migrations, the superhero your database deserves Migrations ease the process of working together on projects, as well as deploying the database changes. A newly released package for the DotKernel stack integrates migrations and seeders into the application; This is all done via the newly introduced "php dot" command that's available in the DotKernel stack.
What is PSR-7 and how to use it
What is PSR-7 and how to use itPSR-7 is a set of common interfaces defined by PHP Framework Interop Group. These interfaces are representing HTTP messages, and URIs for use when communicating trough HTTP.