Skip to content
Imdhemy
  • Home
  • Blog
  • About

Start typing to search the site.

    Start typing to search the site.

      • Home
      • Blog
      • About

      php

      Better alternatives to empty() in PHP

      Better alternatives to empty() in PHP

      Jul 19, 2024 · 5 min read

      I’m working on a weekend project: a static code analysis tool for PHP, just because, well, why not? So, I’ve...
      #php #code-quality #language-features #static-analysis #best-practices
      Singleton Design Pattern in Laravel

      Singleton Design Pattern in Laravel

      Apr 15, 2024 · 5 min read

      Google search console told me that I got some visits from people searching for “Singleton Design Pattern in Laravel”. But...
      #php #laravel #singleton #service-container #dependency-injection
      How to avoid boilerplate code in Symfony Voters

      How to avoid boilerplate code in Symfony Voters

      Apr 3, 2024 · 10 min read

      Symfony voters are the way to go when you need to centralize the authorization logic of your application. There have...
      #php #symfony #authorization #code-reuse #voters
      What Symfony developers should know before using Voters

      What Symfony developers should know before using Voters

      Apr 2, 2024 · 5 min read

      Voters are Symfony’s most powerful way of managing permissions. They allow you to centralize all permission logic, then reuse them...
      #php #symfony #authorization #security #voters
      Hidden Gems in Composer Every PHP Developer Should Know

      Hidden Gems in Composer Every PHP Developer Should Know

      Apr 16, 2023 · 3 min read

      Composer is the most popular PHP dependency manager. I’ve heard about other package managers like PEAR & Phing, but I’ve...
      #php #composer #dependency-management #developer-tools #security

      PHP Real-world use cases of singleton design pattern

      Dec 30, 2021 · 5 min read

      The singleton pattern ensures that a class has only one instance and provides global access to it. Okay, many developers...
      #php #design-patterns #singleton #laravel #software-architecture

      How to test Elasticsearch in PHP applications

      Sep 9, 2021 · 7 min read

      Starting from Elasticsearch 8.0, they introduced multiple breaking changes in the Elasticsearch client library. This article is intended to v...
      #php #testing #elasticsearch #integration-testing #unit-testing

      Why you need a builder to create your entities and models

      Jun 2, 2021 · 10 min read

      Static factories and constructors share a limitation; they do not scale well to large numbers of optional parameters. Consider the...
      #php #design-patterns #builder-pattern #domain-modeling #oop

      Three advantages of using static factory methods in PHP

      May 16, 2021 · 7 min read

      Constructor overloading is a concept of having more than one constructor with a different list of parameters. PHP doesn’t allow...
      #php #design-patterns #static-factory #object-creation #oop

      © 2021 - 2026 . imdhemy.com Published by Jekyll, hosted on GitHub Pages.