Composer: The PHP Dependency Management Tool You Need to Master

Composer logo

When you are working on modern PHP applications, any modern MVC frameworks, one tool stands at the core of nearly every project: Composer. Whether you’re starting a new Laravel project, integrating Symfony components, or pulling in a package for logging, Composer makes dependency management simple and reliable. In this article, we’ll explore what Composer is, … Continue reading Composer: The PHP Dependency Management Tool You Need to Master

Laravel Best Practices: Repository Pattern for Clean and Scalable Code

Imagine situation: when you start building applications with Laravel, it’s very tempting to place all logic directly in controllers. After all, Eloquent models make querying the database straightforward, so why not just use them everywhere? But as your application grows, you’ll notice that this approach quickly leads to fat controllers, tangled logic, and difficulties with … Continue reading Laravel Best Practices: Repository Pattern for Clean and Scalable Code

How to Find Large Files on Ubuntu Linux (and Clean Up Disk Space)

🧹 How to Find Large Files on Ubuntu 18.04 (and Clean Up Disk Space) If you’ve ever run into the dreaded “No space left on device” error on your Linux system, you’re not alone. Over time, log files, package caches, and forgotten downloads can fill up your disk. In this guide, we’ll walk through several … Continue reading How to Find Large Files on Ubuntu Linux (and Clean Up Disk Space)

🔍 How to Verify Inserted Rows Using a CTE in SQL (WITH expected AS Pattern)

🔍 How to Verify Inserted Rows Using a CTE in SQL ( Pattern) Whether you’re writing seeders, migration scripts, or integration tests — verifying that specific records were inserted into a table is a common and critical task. Let me show you a clean and portable SQL technique using a Common Table Expression (CTE) to … Continue reading 🔍 How to Verify Inserted Rows Using a CTE in SQL (WITH expected AS Pattern)

How to create a simple IP address tracker with geolocation in Symfony 6+

Do you want to know who visits your website, where they’re from, and when? In this post, I’ll show you how to build a small Symfony project that: Detects the visitor’s IP address Retrieves geolocation data based on the IP Stores this data in a database Displays the IP, country, and city on the homepage … Continue reading How to create a simple IP address tracker with geolocation in Symfony 6+

Service Classes in Laravel: Clean Architecture and Scalability

✍️ Introduction In Laravel, it’s convenient to put business logic into controllers or models. But what should you do when the logic starts to grow? The right solution is to move it into dedicated service classes. This approach follows the Single Responsibility Principle (SRP) and helps make your code scalable and easy to test. 🧱 … Continue reading Service Classes in Laravel: Clean Architecture and Scalability

🧭 What is Symfony? And How Is It Different from Laravel?

🧭 Symfony is a powerful open-source PHP framework focused on stability, flexibility, and reusable components. It’s widely used to build complex, scalable web applications, enterprise systems, or RESTful APIs. At its core, Symfony is a component-based architecture — and many of its components are actually used by other frameworks, including… Laravel. Yes, you read that … Continue reading 🧭 What is Symfony? And How Is It Different from Laravel?