Guide to PHP 8.4 new DOM Selector Feature
Writing High Quality Tests in PHP; How I Made My Brain Addicted to Coding in 7 Steps; and Laravel whenLoaded - Performance Optimization via Conditional Relationship Loading.
PHP
Unfortunately, tests still do not get the attention they would deserve in many organizations. Sometimes it feels like developers feel guilty if they are not writing any tests, and at the same time test code is often not properly reviewed.
📚 Unlock the Power of Easy Model: Features You’ll Love!
Switching between Query Builder and Eloquent Builder has never been easier. With just one simple syntax, you can seamlessly move between them within Easy Model.
📚 PHP: Skip the boring part & press Tab!
Phpstorm is a fantastic IDE for PHP developers. While it’s not free, you get pretty cool features, such as Live Templates.
📚 Lazy Loading and Circular References
Lazy loading is a design pattern that defers the initialization of objects until they are actually needed.
📚 Guide to PHP 8.4 new DOM Selector Feature
In this article, we’ll take an in-depth look at the new DOM selector functionality in PHP 8.4, its syntax, use cases, and how it simplifies working with DOM elements.
📚 Selenium in PHP for Web Scraping
In this guide, I’ll walk you through how to get started with Selenium and PHP for web scraping.
📚 PHP Design Patterns: Page Controller
The Page Controller design pattern is a common architectural approach used in web-based systems. It organizes the flow of control by dedicating a specific controller to handle the logic for an individual page or request.
📚 Revitalizing Transaction-Heavy Systems by Applying the CQRS
In this article, we’ll explore how CQRS can transform transaction-heavy systems, including practical implementation in PHP, key architectural decisions, and examples of defining interfaces, events, and event listeners.
📚 How I Made My Brain Addicted to Coding in 7 Steps
Have you ever wondered how some people can sit for hours, fully immersed in lines of code, while others find it overwhelming?
Laravel
📚 Laravel: Optimistic Locking in one line
Laravel’s Eloquent ORM has all the necessary tools to implement Optimistic Locking without having to download third party packages or even change our Eloquent Models to a point of becomes a hindrance to maintain.
📚 Designing a Scalable Repository Structure in Laravel with queryFi
In this article, we’ll focus on this issue. I’ll share my preferred structure to cover my use cases, along with some best practices, and explain how to integrate queryFi.
📚 Laravel /FilamentPHP : Auto Submit Prevention!
Okay, so I was working on an admin panel for a PHP application, and I came across something interesting that I wanted to share.
📚 Using withoutWrapping to flatten API responses
Laravel’s API resources wrap responses in a ‘data’ key by default. While useful for many scenarios, sometimes a flatter response structure is needed and you can disable resource wrapping like this.
📚 Customize the Truncation of HTTP Client Request Exceptions
Have you ever received a bug report or looked in Sentry only to find a truncated HTTP client exception you couldn’t read? By default, HTTP responses are truncated, which could potentially leave off important clues as to why a request failed or what happened.
📚 Laravel whenLoaded - Performance Optimization via Conditional Relationship Loading
Laravel’s API Resources feature whenLoaded() to conditionally include relationship data in API responses, optimizing performance by preventing unnecessary database queries.
📚 Integrate Swagger UI with Codeigniter4
Swagger is a widely used API documentation and testing tool that seamlessly integrates with popular web frameworks like Laravel, Spring Boot, CodeIgniter, and ExpressJS. In this article, we will focus on integrating Swagger with CodeIgniter.
📚 Fine-Tuning HTTP Client Error Messages in Laravel
Fine-tune your HTTP client error messages in Laravel with new exception truncation controls. These bootstrap configurations give you precise control over how request exceptions are displayed.
📚 Announcing Inertia 2.0: Redefining Frontend Development for Laravel
We’re excited to announce the stable release of Inertia 2.0, bringing significant improvements to how you build software with Laravel.
📚 URI Parsing and Mutation in Laravel 11.35
This week, the Laravel team released v11.35, which includes URI parsing and mutation, the ability to disable HTTP client exception response truncation, transforming an HTTP response to a Fluent instance, and more.
📚 Laravel VS Code Extension Public Beta
The new Laravel VS Code extension is set to enhance your development workflow by providing a suite of helpful features.
📚 Practical and Creative Enum Use Cases in Laravel
In this article, we’ll explore some practical techniques and use cases to unlock their full potential.
Symfony
📚 Deploy Symfony Application on VPS Step By Step Guide
In this article, we’ll walk you through a step-by-step guide on deploying a Symfony application on a VPS.
Symfony 7.2.1 has just been released. Here is the list of the most important changes since 7.2.0.
📚 A Week of Symfony #937 (9-15 December 2024)
This week, Symfony 7.2.1 was released as the first maintenance version of the 7.2 branch. Meanwhile, the upcoming Symfony 7.3 version introduced a new JsonEncoder component that is 10 times faster than the Serializer component and also supports streaming payloads.
📚 Use Twig Components as Controllers in Symfony
Recently I saw someone online complaining about the impossibility to render Live Components directly from controllers, mentionning that it forces you to create useless templates which often are nothing more than a wrapper around your components…

