PHP 8



How to setup Nginx server blocks (virtual hosts)

  • avatar
  • 7.6K Views
  • 1 Like
  • 5 mins read
Preview post image

Nginx logically divides the configurations in order to serve different content into blocks. A server block is a subset of Nginx’s configuration that defines a virtual server used to handle requests of a defined type. Administrators often configure multiple server blocks and decide which block should handle which connection based on the requested domain name, port and IP address.

Laravel blade structure for scalable projects

  • avatar
  • 5.8K Views
  • 2 Likes
  • 5 mins read
Preview post 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.

GeoDetect: PHP package for IP-based country detection

  • avatar
  • 5.2K Views
  • 1 Like
  • 3 mins read
Preview post 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.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

Connecting to an SQLite database with PHP

  • avatar
  • 4.6K Views
  • 5 mins read
Preview post 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.

Containerizing Symfony Application using Docker

  • avatar
  • 4.7K Views
  • 1 Like
  • 11 mins read
Preview post 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.

Improved GeoDetect featuring flag recognition

  • avatar
  • 4.0K Views
  • 2 Likes
  • 4 mins read
Preview post image

Collecting and analyzing data on users' geographical locations has become increasingly essential for various applications. Precise geolocation data has the potential to significantly enhance the user experience by personalizing content, customizing marketing strategies, and implementing features specific to regions. Back in May, we introduced the GeoDetect package to facilitate this process.

Practical guide to PHP 8.5 containerization

  • avatar
  • 3.2K Views
  • 1 Like
  • 7 mins read
Preview post 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.2K Views
  • 4 Likes
  • 8 mins read
Preview post 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.

PHPStan 2.0 Released

  • 3.3K Views
  • 1 Like
  • 1 min read
Preview post 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.