PHP Symfony Sonata

Tag API

Symfony: Uid in API

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.

Symfony: Limiting the Number of Failed Login Attempts

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.

Sonata Admin: Path to Media Files in REST

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.

© 2026 PHPNotes — Powered by WordPress

Theme by Anders Noren — Up ↑