php base



PHPStan 2.0 Released

  • 6.4K Views
  • 1 Like
  • 1 min read
PHPStan 2.0 Released

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.

Transistors: the building blocks of our digital world

  • avatar
  • 6.6K Views
  • 2 Likes
  • 7 mins read
Transistors: the building blocks of our digital world

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.

Connecting a motor to Arduino

  • avatar
  • 6.5K Views
  • 1 Like
  • 7 mins read
Connecting a motor to Arduino

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.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

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.

Using transistors in electronic circuits

  • avatar
  • 6.4K Views
  • 3 Likes
  • 7 mins read
Using transistors in electronic circuits

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.

Implementing Commands and Queries in Laravel 12

  • avatar
  • 5.7K Views
  • 5 Likes
  • 8 mins read
Implementing Commands and Queries in Laravel 12

CQRS, short for Command Query Responsibility Segregation, is a simple yet powerful way to split the responsibility for writing and reading data in an application. Instead of having a single service or model method that both changes and retrieves data, you give commands the job of making changes and queries the job of fetching information. This split can make large projects much easier to follow, especially as business rules grow and read and write requirements start to differ.

Native enumerations in PHP

  • avatar
  • 6.3K Views
  • 5 Likes
  • 6 mins read
Native enumerations in PHP

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

  • avatar
  • 4.8K Views
  • 6 mins read
What's new in PHP 8.5

PHP 8.5 lands with a pack of features that smooth out daily development, remove long-standing friction points, and make functional patterns far easier to write. It feels like a release focused on practical wins: cleaner code, stronger introspection tools, safer configuration defaults, and more helpful debugging. Let's walk through the most interesting additions.

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.