Skip to content
  • Home
  • Posts
    • Refactoring & Patterns
    • Testing
    • Development Workflow & Best Practices
  • About
CodeCraft Diary
  • Home
  • Posts
    • Refactoring & Patterns
    • Testing
    • Development Workflow & Best Practices
  • About
CodeCraft Diary
Abstract Factory Pattern in PHP – Examples & Best Practices

Abstract Factory Pattern in PHP – Examples & Best Practices

Bycodecraftdiary / 7. 12. 2025 / Refactoring & Patterns / Comment (0) /
When working on large PHP projects, especially...
Read More
Mocking, Stubbing, Spying, and Faking in PHP: A Practical Guide (with Sandbox Example)

Mocking, Stubbing, Spying, and Faking in PHP: A Practical Guide (with Sandbox Example)

Bycodecraftdiary / 29. 11. 2025 / Testing / Comment (0) /
Modern PHP applications rely on many external...
Read More
Refactoring If-Else Hell into a Strategy Pattern in PHP ⚙️

Refactoring If-Else Hell into a Strategy Pattern in PHP ⚙️

Bycodecraftdiary / 21. 11. 2025 / Refactoring & Patterns / Comment (0) /
Hey there! Today I want to share a common problem...
Read More
Writing Maintainable Feature test(Real Laravel example)

Writing Maintainable Feature test(Real Laravel example)

Bycodecraftdiary / 13. 11. 2025 / Testing / Comment (0) /
One of the things I enjoy the most about Laravel...
Read More
  • «
  • ‹
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • ›

About Code Craft Diary

A blog dedicated to clean code, effective testing, smart refactoring, and practical design patterns. Share, learn, and improve your coding craft with tips, tutorials, and real-world examples.

Useful Links

  • Introduction
  • About Us
  • Refactoring tips
  • Testing strategies

Important Links

  • Privacy Policy
  • Cookies Policy

Copyright © 2026 CodeCraft Diary

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}