Naming best practices in PHP
PHP Null Safety; Property Hooks Are Coming To PHP 8.4; and Clean Code Architecture in Laravel: A Practical Guide.
PHP
📚 Naming best practices in PHP
I’m going to dispel some naming myths and I hope you can find here usefull tips to use not only in production code but in tests as well.
Imagine, You need bill type of a particular payment and you will get from Payment class like below.
📚 Property Hooks Are Coming To PHP 8.4!
One of the most widely discussed features coming to PHP 8.4 is Property Hooks. Property hooks allow us to add behavior that is specific to a single property while allowing that behavior to not interfere with existing aspects of PHP.
📚 Bridging the Gap Between the Classic and New UIs
Any significant update to the UI and UX of a professional tool is likely to pose challenges for its users. We recognize that the new UI of JetBrains IDEs represents a major change and understand how unsettling it can be when the software you rely on for productivity is significantly reworked.
📚 Why I Use the empty() Language Construct More than isset() in PHP and You Should Too
When developing in PHP, handling variable checks effectively is crucial to ensure robust and error-free code. Two frequently used language constructs for this purpose are empty() and isset().
📚 Comprehensive Cheat Sheet for Date and Time Format Options in PHP
Here’s a comprehensive cheat sheet for date and time format options in PHP, which are commonly used in many programming contexts for formatting dates and times.
📚 TDD is a good exercise. That’s all.
I would like to share the experience I have gained from several years of practicing TDD in PHP. It’s simple: TDD structures your mind and code to be testable from start.
📚 Understanding PHP Core Concepts: A Comprehensive Guide
To become proficient in PHP, it’s essential to understand its core concepts, including syntax, data types, error handling, exceptions, namespaces, and autoloading. This detailed guide will explore each of these topics.
📚 Does PHP support Single Thread or Multi Threading? What does that even mean?!
First of all, this post is for my junior friends, as I won’t be offering a setup guide here, but rather a chat about the topic. So, if you’re a Senior and you see this post, I’m waiting for your feedback.
Laravel
📚 A Case For Custom Collections
I recently submitted a pull request to the Laravel framework to add a new Eloquent attribute called CollectedBy. In short, it allows you to use an attribute to configure your Eloquent model to use a specific Collection class, rather than the default (which is Illuminate\Database\Eloquent\Collection).
📚 Laravel custom helper functions – Fast Tips
Helper functions are quite popular among Laravel developers. They provide access to some clever algorithms ready to be used in your code using a single statement.
📚 Clean Code Architecture in Laravel: A Practical Guide
If you’ve been developing with Laravel for a while, you’ve probably heard the phrase “clean code” tossed around. But what does it actually mean in the context of Laravel development? More importantly, why should you care?
📚 Laravel performance optimization strategy: from source code analysis to actual practice
This article will comprehensively explore performance optimization strategies for Laravel from both source code analysis and practical application perspectives.
📚 Sharing encrypted Laravel cookies with Next.js
I recently found myself needing to crack open the values of cookies coming from a Laravel application, read them, update them, and then patch them back up in a way the Laravel application wouldn’t even notice.
📚 A Deep Dive into Sessions in Laravel
When building Laravel applications, it’s almost guaranteed you’ll need to deal with sessions at some point. They are a fundamental part of web development.
📚 Laravel custom helper functions — Fast Tips
Helper functions are quite popular among Laravel developers. They provide access to some clever algorithms ready to be used in your code using a single statement.
📚 Mastering Laravel Configuration: An In-Depth Guide
In this post, we’ll explore Laravel’s most important configuration files and how to effectively manage them using the .env file to optimize your application’s performance.
📚 Simplifying Form Validation with Laravel Form Requests
Let’s dive into how Laravel Form Requests can simplify your validation workflow and help you maintain cleaner, more efficient code.
📚 Mastering Laravel’s Terminable Middleware: Post-Response Magic
Enter Laravel’s terminable middleware — a powerful feature that allows you to execute code after the HTTP response has been dispatched. Let’s dive into how you can leverage this feature to optimize your Laravel applications.
📚 Laravel 11.28 Adds a Composer Dev Command
This week, the Laravel team released v11.28, with a composer run dev command, Tailwind default config, a “CollectedBy” attribute to define a custom Collection class for a model, interactive encrypt/decrypt commands, and more.
📚 Mastering Form Input Persistence in Laravel with Flash Methods
When building web applications, preserving form input across requests is a common requirement, especially when dealing with validation errors or multi-step forms.
Symfony
📚 A Week of Symfony #929 (14-20 October 2024)
This week, Symfony development activity focused on various bug fixes across all supported branches. Meanwhile, we published more blog posts about the new Symfony 7.2 features. Lastly, we shared more details about some of the talks from the SymfonyCon Vienna 2024 conference.

