Avoid exposing internal entity IDs in your API. In this article, we’ll see how to use UUID v7 with Symfony Uid, from generating and storing UUIDs to documenting them with NelmioApiDoc and querying them with Doctrine.
This article shows how to log the moment when Symfony’s failed login limit is exceeded. It explains why the user cannot be retrieved directly in this case and how to obtain the user identifier, while keeping standard failed login attempts working as expected.
This article shows how to log successful logins, failed login attempts, and logouts in Symfony using security events. It explains how to handle edge cases caused by login throttling and expired sessions, and how to configure trusted proxies in Azure so that the logs contain the client’s actual IP address instead of the load balancer’s IP.
In this article, I show how to limit failed login attempts in Symfony using the Rate Limiter component. You’ll learn how to block repeated login attempts and configure Redis as a shared cache pool for applications running on multiple Azure instances. The article also covers configuring custom rate limiters for APIs.
In this article, I show how to use Doctrine 2 UnitOfWork to detect changes in an entity. You’ll learn how to retrieve the original entity data and inspect a change set containing both old and new values, as well as how to efficiently check changes for a single entity.
Learn how to keep PHP code consistent, clean, and maintainable with a practical code quality setup. This guide presents a configuration using PSR-12, .gitattributes, PHP CS Fixer, and PHPStan to automate code formatting, ensure consistent line endings, and catch potential problems before they reach production.
Learn how to create a custom Symfony Bundle in newer Symfony versions, where the bundle structure and configuration approach have changed. This guide walks through creating a bundle from scratch, organizing its files, configuring services and autowiring, loading configuration automatically, and installing the bundle with Composer.
Learn how to include the file path of Sonata Media Bundle files in a Symfony REST API response. This guide shows how to create a custom serializer that uses Sonata Media’s built-in `path` function and adds the media path only for the required serialization group.
Installing Sonata Admin can be a little confusing when following the official documentation. This guide provides a more straightforward, practical setup covering Sonata Admin, Doctrine ORM, Sonata User Bundle, routing, security, database configuration, and the first admin user. It also includes solutions to common installation errors and the package versions used in the setup.
Learn how to configure Redis as an application cache in the Symfony framework. This guide outlines the required environment variables for the Redis service and the Symfony cache configuration, along with recommendations.
© 2026 PHPNotes — Powered by WordPress
Theme by Anders Noren — Up ↑
We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site.
We also use third-party cookies that help us analyse how you use this website, store your preferences, and provide the content and marketing materials that are relevant to you. These cookies will only be stored in your browser with your prior consent.
You can choose to enable or disable some or all of these cookies but disabling some of them may affect your browsing experience.
Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. They are not used for advertising or to track you across other sites. The consent cookie stores a random identifier that lets us keep a record of the choice you made.
Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Cookies that have not yet been categorized.
Marketing cookies are used to provide visitors with customised ads based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.