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
Blog
How to group log files by date using dot-log
As described in this article, dot-log is a powerful tool for logging messages in your application. It’s power stays in the fact that it can be implemented in a few easy steps and that it’s highly customizable. … Read More
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.com/dotkernel/doctrine-cache-using-symfony-cache/ Using an ORM in production without any sort of cache strategy is a very bad move. The Database server chokes; … Read More
Dotkernel Admin version 3 launched
Dotkernel Admin PHP Application version 3 was launched. Dotkernel is a Collection of PSR-7 Middleware applications built on top of Mezzio microframework and using Laminas components Dotkernel Admin is a basic admin panel, based on Boostrap ^4.5.0 , using Doctrine … Read More
Dotkernel Frontend version 3 launched
Dotkernel Frontend PHP Application version 3 was launched. Dotkernel is a Collection of PSR-7 Middleware applications built on top of Mezzio microframework and using Laminas components You can clone it from github Live demo: v3.dotkernel.net Changelog: Branch 3.0 is the … Read More
How to implement MailChimp in DotKernel API
This article will walk you through the process of implementing MailChimp into your instance of DotKernel API using drewm/mailchimp-api Step 1: Add the library to your application using the following command: composer require drewm/mailchimp-api Step 2: Create configuration … Read More
DotKernel API 1.0.0 Released
DotKernel API 1.0.0 was just released! What is DotKernel API? It is a Zend Expressive 3 application aiming to help developers quickly and efficiently develop an API. How does it work? Under the hood it uses the following … Read More
DotKernel API Server Side Authorization
This article covers the basic authorization of a Server Side application built using DotKernel API Protecting an endpoint no-auth: the resource can be accessed without the need of authentication/authorization authentication: the resource can be accessed only by authenticated users authorization: … Read More
DotKernel API Client Side Authorization
This article covers the basic authorization of a Client application which use a backend built using DotKernel API Authorization Request Client application users send a POST request to the backend containing the following JSON object: { “grant_type”: “password”, “client_id”: “{API_CLIENT}”, … Read More
Adding a CORS implementation to Zend Expressive
This article is a guide on how to add a CORS implementation on an existing DotKernel3 project. The issue If you’re facing this message: “Access to XMLHttpRequest at ‘url’ has been blocked by cors policy. No ‘Access-Control-Allow-Origin header is present … Read More