php base



Domain Driven Design: Components

  • avatar
  • 6.6K Views
  • 8 Likes
  • 9 mins read
Preview post image

Previously, we explored the fundamental concepts and terminology utilized in Domain Driven Design (DDD), as well as the layers that make up its architecture. In this section, we will examine the artifacts employed to integrate these concepts and construct our application, using PHP as an example.

Laravel blade structure for scalable projects

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

 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.7K 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.

Transistors: the building blocks of our digital world

  • avatar
  • 2.4K Views
  • 7 mins read
Preview post image

Transistors are semiconductor devices that regulate the flow of electrical current within a circuit. Their invention in the mid-20th century marked a pivotal moment in electronics. Semiconductors, typically made of silicon or germanium, form the basis of transistors, granting them the ability to switch and amplify electrical signals. These devices have revolutionized the world of electronics, making way for the digital age by enabling the miniaturization of complex circuits and facilitating the rapid advancement of technology.

Native enumerations in PHP

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

Using transistors in electronic circuits

  • avatar
  • 2.2K Views
  • 7 mins read
Preview post image

Transistors are fundamental semiconductor devices that revolutionized the world of electronics. Among various types of transistors, Bipolar Junction Transistors (BJTs) hold significant importance due to their widespread use in amplification, switching, and signal processing applications. This article will explore the two main types of BJT transistors: NPN and PNP. We will explore their basic structures, operating principles, and essential circuit elements required for their proper functioning.

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.

Connecting a motor to Arduino

  • avatar
  • 1.9K Views
  • 1 Like
  • 7 mins read
Preview post image

Arduino microcontrollers are the heart of countless DIY projects, from robots to automated systems. To bring these projects to life, you often need to interface them with motors. In this guide, we'll walk you through the essential steps of connecting a motor to an Arduino using a separate power supply while ensuring control with precision using an NPN transistor. This approach allows you to harness the full potential of your motorized creations without overloading your Arduino.