Recent articles

Preview image

Create Laravel 13 project from scratch

  • 14 Views
  • 7 mins read

Laravel is a PHP framework built around the Model View Controller pattern, designed to make web development more organized and less repetitive. It has become one of the most widely used frameworks in the PHP ecosystem, and its yearly major releases keep bringing refinements to routing, database handling, testing, and application structure. Laravel 13 continues that pattern with a required PHP version bump, additional PHP attributes for controllers and queues, and a first party AI SDK, while leaving most day to day development patterns unchanged. Creating a new Laravel 13 project begins with installing PHP, Composer, and Laravel itself, followed by a short round of configuration that prepares the application for development.

Read more
Preview image

Reading light levels with an LDR and Arduino

  • 292 Views
  • 12 mins read

A light dependent resistor is a component that changes its electrical resistance according to how much light falls on it. Bright light makes it conduct easily, darkness makes it conduct poorly, and an Arduino can turn that difference into a number. It arrives in two forms. The raw component is a small disc with two legs, and it needs one extra resistor to work. The other form is a sensor module, a small board with the component already soldered on together with everything else the circuit needs, ready to connect to the Arduino with three or four jumper wires. Both versions do the same job and both show up in real projects. Automatic garden lights, night lights, display backlight dimming or simple daylight loggers all work on the same principle.

Read more
Preview image

How to create a Composer package from scratch

Available to Premium members only
  • 457 Views
  • 1 Like
  • 16 mins read

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.

Read more