php



What's new in PHP 8.3

  • avatar
  • 1.0K Views
  • 6 mins read
Preview post image

PHP 8.3 was released as scheduled on November 23, introducing numerous new features and improvements since the PHP 8.2 release. We'll go through most important features, performance improvements, changes and deprecations one by one.

PHP 8.3 and subsequent versions now enable the declaration of types for PHP class constants. This guarantees type compatibility for constants when overridden by child classes and interface implementations. Before PHP 8.3, there was no way to enforce type compatibility programmatically.

What's new in PHP 8.2

  • avatar
  • 1.2K Views
  • 2 Likes
  • 5 mins read
Preview post image

PHP 8.2 has been released on December 8, 2022. We'll go through most important features, performance improvements, changes and deprecations one by one.

Read only properties were introduced in PHP 8.1. Now, PHP 8.2 is adding support to declare the entire class as read only.

If you declare a class as read only, all its properties will automatically inherit the read only feature. Thus, declaring a class read only is the same as declaring every class property as read only.

Containerizing Symfony Application using Docker

  • avatar
  • 924 Views
  • 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.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

Your first Docker Hub image from scratch

  • avatar
  • 1.6K Views
  • 1 Like
  • 6 mins read
Preview post image

Docker provides the ability to package and run an application in a loosely isolated environment called a container. The isolation and security allow you to run many containers simultaneously on a given host. Containers are lightweight and contain everything needed to run the application, so you do not need to rely on what is currently installed on the host. You can easily share containers while you work, and be sure that everyone you share with gets the same container that works in the same way.

Laravel 11 is released

  • 696 Views
  • 2 Likes
  • 4 mins read
Preview post image

Laravel 11 has been officially launched, bringing along several exciting enhancements. Among the notable updates is the requirement for a minimum PHP version of 8.2, ensuring compatibility with the latest features and optimizations. Additionally, a new Laravel Reverb package has been introduced to Laravel's suite of first-party tools. Moreover, users can expect a streamlined directory structure, contributing to a more organized and efficient development process. These advancements collectively contribute to making Laravel 11 a compelling choice for web development projects, offering improved performance, functionality, and developer experience.

Create Laravel 11 project from scratch

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

Laravel is a PHP web application framework that's open-source and designed for building web applications following the Model-View-Controller (MVC) architectural pattern. It was created back in 2011 and has become one of the most widely used PHP frameworks for web development.

Laravel offers developers numerous powerful features and tools. These include a straightforward and expressive syntax, built-in database migration and schema management, automated testing capabilities, and a robust ecosystem of third-party packages. Among its key features are its powerful routing engine, which allows developers to easily define application routes, and its comprehensive ORM (Object-Relational Mapping) system, which simplifies working with databases and models.

Docker compose introduction

  • avatar
  • 1.2K Views
  • 2 Likes
  • 8 mins read
Preview post image

Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

The features of Docker Compose that make it effective are:

Installing & setting up Symfony 6

  • avatar
  • 470 Views
  • 4 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.

How to setup Nginx server blocks (virtual hosts)

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

How to create Symfony project

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