Composer 2



Country detection in Laravel applications

  • avatar
  • 10.5K Views
  • 8 Likes
  • 5 mins read
Country detection in Laravel applications

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
  • 6.7K Views
  • 1 Like
  • 11 mins read
Containerizing Symfony Application using Docker

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.

GeoDetect: PHP package for IP-based country detection

  • avatar
  • 6.6K Views
  • 2 Likes
  • 3 mins read
GeoDetect: PHP package for IP-based country detection

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

Improved GeoDetect featuring flag recognition

  • avatar
  • 5.3K Views
  • 2 Likes
  • 4 mins read
Improved GeoDetect featuring flag recognition

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.

Organizing Laravel helpers using Composer

  • avatar
  • 4.1K Views
  • 4 mins read
Organizing Laravel helpers using Composer

As a Laravel project grows, it is common to see the same small functions repeated in multiple places such as formatting values, checking routes, or handling basic text transformations. Instead of scattering these across controllers or traits, a more structured approach is to collect them into a dedicated helper file. While Laravel does not include a default setup for this, Composer's autoload configuration makes it straightforward to register a custom helper file. This ensures those functions are always available throughout the application without manual includes.

Installing & setting up Symfony 6

  • avatar
  • 3.0K Views
  • 4 mins read
Installing & setting up Symfony 6

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.

Clean query building using Criteria

  • avatar
  • 2.4K Views
  • 1 Like
  • 5 mins read
Clean query building using Criteria

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.

How to create Symfony project

  • avatar
  • 3.5K Views
  • 3 mins read
How to create Symfony project

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 create a Composer package from scratch

Available to Premium members only
  • avatar
  • 1.7K Views
  • 1 Like
  • 16 mins read
How to create a Composer package from scratch

A helper class, a small client wrapper or a set of validation rules often starts in one project and ends up copied into the next one. From that point the copies drift apart, a bug fixed in one of them stays open in the rest, and there is no version number to refer to when something changes.

Turning that code into a Composer package removes the copies. The requirements are modest, since a package is a directory containing a valid composer.json file, a Git repository hosting it, and a listing on Packagist that tells Composer where to find it.