PHP 74



Domain Driven Design: Components

  • avatar
  • 8.1K Views
  • 9 Likes
  • 9 mins read
Preview image

Previously, we explored the fundamental concepts and terminology utilized in Domain Driven Design (DDD), as well as the layers that make up its architecture. In this section, we will examine the artifacts employed to integrate these concepts and construct our application, using PHP as an example.

Laravel blade structure for scalable projects

  • avatar
  • 6.1K Views
  • 2 Likes
  • 5 mins read
Preview image

Projects tend to grow in size and level of complexity resulting in more and more files. A good base structure may help creating developer-friendly, maintainable and scalable product. Blade is a simple and powerful templating engine included with Laravel. Unlike some PHP templating engines, Blade does not restrict you from using plain PHP code in your templates. In fact, all Blade templates are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application. Blade template files use the .blade.php file extension and are typically stored in the resources/views directory.

Connecting to an SQLite database with PHP

  • avatar
  • 5.0K Views
  • 1 Like
  • 5 mins read
Preview image

SQLite is a lightweight, self-contained database engine that doesn't require a separate server to run. It's a popular choice for smaller applications, embedded systems, and situations where simplicity and minimal setup are crucial. In PHP development, SQLite is an excellent option for managing data without needing the complexity of larger database systems. Whether you're working on a small project or need a simple solution for data storage, SQLite can be a powerful tool. This article will guide you through using SQLite with PHP, showing how to set it up, perform common operations, and use it in your applications.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

GeoDetect: PHP package for IP-based country detection

  • avatar
  • 5.4K Views
  • 1 Like
  • 3 mins read
Preview image

The ability to gather and analyze data about users' geographical locations has become increasingly vital for numerous applications. Whether it's personalizing content, tailoring marketing strategies, or implementing region-specific features, having accurate geolocation information can significantly enhance the user experience. To facilitate this process, GeoDetect package detects the country associated with an IP address.

PHPStan 2.0 Released

  • 4.7K Views
  • 1 Like
  • 1 min read
Preview image

It’s been over three years since PHPStan 1.0 came out, and the progress has been incredible. With 176 releases since then, it’s clear this tool isn’t slowing down. PHPStan 2.0 is here with smarter features, better performance, and tighter checks to make PHP development more reliable and efficient. Let’s break down the highlights of what’s new.

Running PHP 8.5 with Nginx on Ubuntu

  • avatar
  • 4.3K Views
  • 7 mins read
Preview image

Running modern PHP applications on a stable stack is a basic requirement for most IT and development environments. Pairing PHP 8.5 with Nginx gives you strong performance, good resource usage, and solid flexibility for APIs, CMS platforms, and custom applications.

In this guide, you will install PHP 8.5 with PHP FPM, remove older PHP versions safely, manage extensions, and configure Nginx to use the new version. The steps are written for common Linux distributions such as Ubuntu and Debian, but the logic is similar on other systems.

Containerizing Symfony Application using Docker

  • avatar
  • 4.9K Views
  • 1 Like
  • 11 mins read
Preview image

Containerization has become widely adopted in contemporary web development as a means of bundling applications, offering isolated environments, and streamlining deployment procedures. Docker, an open-source platform, has gained substantial popularity by enabling developers to package their applications and dependencies into containers. In this article, we will explore the benefits and steps involved in Docker containerization of Symfony applications, a popular PHP framework.

Practical guide to PHP 8.5 containerization

  • avatar
  • 4.2K Views
  • 1 Like
  • 7 mins read
Preview image

Containerization for PHP 8.5 gives a simple, predictable and practical way to run applications without worrying about what the host machine has installed. A container bundles PHP, extensions and all required tools in one place. This helps teams keep things clean, reproducible and easy to work with. The idea is straightforward: you build an image, start containers from it and share the image when needed. PHP 8.5 brings performance improvements and a smoother developer experience, so pairing it with Docker is a natural step for modern projects.

Implementing Commands and Queries in Laravel 12

  • avatar
  • 3.6K Views
  • 5 Likes
  • 8 mins read
Preview image

CQRS, short for Command Query Responsibility Segregation, is a simple yet powerful way to split the responsibility for writing and reading data in an application. Instead of having a single service or model method that both changes and retrieves data, you give commands the job of making changes and queries the job of fetching information. This split can make large projects much easier to follow, especially as business rules grow and read and write requirements start to differ.