Skip to content
Imdhemy
  • Home
  • Blog
  • About

Start typing to search the site.

    Start typing to search the site.

      • Home
      • Blog
      • About

      php

      Browse all posts filed under category php. Check out the blog for all posts.

      Better alternatives to empty() in PHP

      Better alternatives to empty() in PHP

      I’m working on a weekend project: a static code analysis tool for PHP, just because, well, why not? So, I’ve...

      Jul 19, 2024 · 5 min read

      #php #code-quality #language-features #static-analysis #best-practices
      Read article →
      Singleton Design Pattern in Laravel

      Singleton Design Pattern in Laravel

      Google search console told me that I got some visits from people searching for “Singleton Design Pattern in Laravel”. But...

      Apr 15, 2024 · 5 min read

      #php #laravel #singleton #service-container #dependency-injection
      Read article →
      How to avoid boilerplate code in Symfony Voters

      How to avoid boilerplate code in Symfony Voters

      Symfony voters are the way to go when you need to centralize the authorization logic of your application. There have...

      Apr 3, 2024 · 10 min read

      #php #symfony #authorization #code-reuse #voters
      Read article →
      What Symfony developers should know before using Voters

      What Symfony developers should know before using Voters

      Voters are Symfony’s most powerful way of managing permissions. They allow you to centralize all permission logic, then reuse them...

      Apr 2, 2024 · 5 min read

      #php #symfony #authorization #security #voters
      Read article →
      Hidden Gems in Composer Every PHP Developer Should Know

      Hidden Gems in Composer Every PHP Developer Should Know

      Composer is the most popular PHP dependency manager. I’ve heard about other package managers like PEAR & Phing, but I’ve...

      Apr 16, 2023 · 3 min read

      #php #composer #dependency-management #developer-tools #security
      Read article →

      PHP Real-world use cases of singleton design pattern

      The singleton pattern ensures that a class has only one instance and provides global access to it. Okay, many developers...

      Dec 30, 2021 · 5 min read

      #php #design-patterns #singleton #laravel #software-architecture
      Read article →

      How to test Elasticsearch in PHP applications

      Starting from Elasticsearch 8.0, they introduced multiple breaking changes in the Elasticsearch client library. This article is intended to v...

      Sep 9, 2021 · 7 min read

      #php #testing #elasticsearch #integration-testing #unit-testing
      Read article →

      Why you need a builder to create your entities and models

      Static factories and constructors share a limitation; they do not scale well to large numbers of optional parameters. Consider the...

      Jun 2, 2021 · 10 min read

      #php #design-patterns #builder-pattern #domain-modeling #oop
      Read article →

      Three advantages of using static factory methods in PHP

      Constructor overloading is a concept of having more than one constructor with a different list of parameters. PHP doesn’t allow...

      May 16, 2021 · 7 min read

      #php #design-patterns #static-factory #object-creation #oop
      Read article →

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