php base



How to setup Nginx server blocks (virtual hosts)

  • avatar
  • 2.3K 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.

PHPStan 2.0 Released

  • 958 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.

How to create Symfony project

  • avatar
  • 2.0K Views
  • 3 mins read
Preview post image

Symfony is a PHP web application framework and a set of reusable PHP components/libraries. Symfony aims to speed up the creation and maintenance of web applications and to replace repetitive coding tasks. It's also aimed at building robust applications in an enterprise context, and aims to give developers full control over the configuration: from the directory structure to the foreign libraries, almost everything can be customized.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

How to install & start using Composer

  • avatar
  • 2.0K Views
  • 2 mins read
Preview post image

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Composer requires PHP 5.3.2+ to run. A few sensitive PHP settings and compile flags are also required, but when using the installer you will be warned about any incompatibilities.

Getting started with CQRS in PHP

  • avatar
  • 606 Views
  • 5 mins read
Preview post image

CQRS stands for Command Query Responsibility Segregation. It's a pattern that separates how an application reads data from how it writes data. This approach can help structure code more clearly, especially in systems that deal with complex business logic or need to scale certain operations differently.

Clean query building using Criteria

  • avatar
  • 614 Views
  • 1 Like
  • 5 mins read
Preview post image

Criteria is a framework-agnostic PHP package that simplifies the use of the criteria pattern for filtering, sorting, and paginating data. It helps separate query logic from repositories, making the codebase easier to maintain and extend over time. By using Criteria, developers can handle complex querying needs without spreading filter logic across different parts of the application.