PHP



GeoDetect: PHP package for IP-based country detection

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

Containerizing Symfony Application using Docker

  • avatar
  • 2.5K 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

Improved GeoDetect featuring flag recognition

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

Native enumerations in PHP

  • avatar
  • 2.6K Views
  • 4 Likes
  • 6 mins read
Preview post image

Enumerations, or Enums allow a developer to define a custom type that is limited to one of a discrete number of possible values. That can be especially helpful when defining a domain model, as it enables making invalid states unrepresentable. In other words, enums are a restricting layer on top of classes and class constants, intended to provide a way to define a closed set of possible values for a type.

What's new in PHP 8.3

  • avatar
  • 1.9K Views
  • 1 Like
  • 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.

Laravel 11 is released

  • 1.7K Views
  • 5 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.

Your first Docker Hub image from scratch

  • avatar
  • 2.5K Views
  • 1 Like
  • 7 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.

Connecting to an SQLite database with PHP

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

Docker compose introduction

  • avatar
  • 2.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: