PHP Performance Optimization
Comprehensive Guidebooks for PHP and Algorithm Learning; Dockerizing a Simple PHP Application; and KISS Principle (Keep It Simple, Stupid).
📢 Real time user tracker for developers
With MetricsWave you can track whatever is important for your product. Measure your traffic, sales, and user behavior in real time. It’s like mixing GA/Plausible + Amplitud in a single tool. (Advert)
PHP
📚 PHP Performance Optimization
Let’s dive deep into each optimization technique and understand how they contribute to better performance.
📚 Comprehensive Guidebooks for PHP and Algorithm Learning
Here are some book recommendations that cover everything from programming fundamentals to advanced algorithms, always with a practical approach focused on application in web development.
📚 Lazy Objects in PHP 8.4: A New Era of Efficient Object Handling
PHP 8.4 introduces lazy objects, a feature designed to defer an object’s initialization until it is accessed. This approach minimizes resource usage, especially for objects with heavy initialization logic that may only sometimes be used during execution.
📚 Dockerizing a Simple PHP Application
In this blog post, we’ll walk through a practical example of Dockerizing a simple PHP application. By the end of this guide, you’ll have a working Docker container serving a basic PHP app.
📚 How to Connect Redis with PHP Using Docker Compose
Now I share with everyone how we can use Redis in PHP. We know what Redis is, right? In Programming, you’ve probably seen it somewhere before.
📚 PHP OOP Part-1: Introduction, Object, and Class
If you’re a beginner or unfamiliar with OOP concepts, this series is designed to guide you step by step. In this part, I will discuss about the OOP introduction, object and class in PHP.
📚 Deploying Multiple PHP Applications Using AWS Elastic Beanstalk with a Standalone ALB
In this guide, we’ll deploy multiple PHP applications using AWS Elastic Beanstalk (EB) environments, and configure a single standalone Application Load Balancer (ALB) for all environments.
📚 Beginner’s Guide to PHP Form Handling with Cookies
In this guide, we’ll explore PHP form handling using cookies to store user data. Cookies are a way to persist small amounts of data on the user’s browser, making it possible to remember user preferences or information across different sessions.
📚 Build Your Own Lightweight Query Builder in PHP
In this tutorial, we’ll create a lightweight query builder in PHP 8.2 that supports basic database operations. If you missed our last blog on writing a custom ORM in PHP, check it out here for additional context.
📚 The PHP Foundation Turns Three!
Wow. Can you believe it? Just three years (and one day) ago, PHP had no organization behind it. Only two people were being paid to work on the language that powers 70% of the web.
📚 KISS Principle (Keep It Simple, Stupid)
KISS advocates for simplicity in software design. Complex systems are more prone to errors, harder to maintain, and difficult for other developers to understand.
📚 What is PHP Fiber? Does PHP Fiber Really Give You Asynchronous Execution?
Fibers don’t provide true asynchronous execution, but they are a powerful tool for managing tasks more efficiently. Let’s explore this concept in detail.
DRY emphasizes that every piece of knowledge in a system should have a single, unambiguous representation.
📚 Doctrine for Dummies: 50 Recommendations to Optimize ORM and Turbocharge Your App
These 50 tips are your pit stop for optimization! Let’s dive into the key strategies that will not only turbocharge your app’s performance but also refine your code, making it faster, cleaner, and more efficient than ever.
📚 CLEAN CODE: Chapter 2: Meaningful Names
These examples demonstrate how meaningful names improve code readability and maintainability.
Laravel
📚 Laravel Under The Hood - Extending the framework
A few days ago, I was fixing a flaky test, and it turned out I needed some unique and valid values within my factory.
📚 Why Your Laravel Relationship Returns an Integer (and How to Fix It)
If you’ve ever used Laravel’s Eloquent ORM, you know how great it is , until something weird happens.
📚 Mastering Dynamic String Manipulation with Laravel’s Str::replaceArray()
String manipulation in Laravel often involves replacing multiple placeholders with dynamic values. Laravel provides a powerful solution through the Str::replaceArray() method, making complex string replacements straightforward and efficient.
📚 Managing API Rate Limits in Laravel Through Job Throttling
When working with external services like AWS SES for email delivery, preventing API flooding is crucial. Laravel provides an elegant solution through Redis::throttle to manage your rate limits effectively.
📚 Efficient Large Dataset Handling in Laravel Using streamJson()
When working with substantial datasets in Laravel applications, sending all data at once can create performance bottlenecks and memory issues.
📚 What Happens When You Run “php artisan serve” in Laravel?
Let’s explore this in detail, step by step, understand how Laravel identifies and runs the ServeCommand, and dive into what PHP’s built-in server is and how it compares to traditional web servers like Nginx or Apache.
📚 Building Dynamic and Maintainable Menus in Laravel
This blog post explores how to simplify and structure your menus using a Menu Builder system, making them easier to maintain, extend, and scale.
📚 Fluent Array Handling in Laravel: The fluent() Helper
Working with nested arrays in Laravel just got smoother with the introduction of the fluent() helper function, providing a more intuitive way to access and manipulate multi-dimensional data.
📚 PIE (PHP Installer for Extensions)
The PHP Foundation has recently introduced a pre-release of the PHP Installer for Extensions (PIE). PIE aims to simplify managing PHP extensions by providing a modern, flexible alternative to PECL and treating extensions as first-class citizens in the PHP ecosystem.
📚 Access Request Data Fluently in Laravel 11.34
This week, the Laravel team released v11.34, with a Request::fluent() method, a Number spellOrdinal() helper, conditional route definitions, shorthand fakes for HTTP responses, and more.
📚 PHP is a Single-Threaded Language, So How Does Laravel Handle Queue Jobs Asynchronously?
If PHP is single-threaded, how does Laravel achieve this magic? Let’s break it down in simple terms.
Symfony
📚 How to generate a PDF file in a few lines of code with Symfony
Developers are always on the lookout for solutions that are efficient, extensible, and compatible with their existing tech stacks, but finding the right balance is not always straightforward.
Check the Living on the Edge category on this blog to learn about the main features of this new stable release; or check the release announcement of BETA1 to get the list of all new features.
Symfony 5.4.49 has just been released. Here is the list of the most important changes since 5.4.48.