Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My php
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

PHP Performance Mistakes Hiding in Your Loops and Queries

PHP Performance Mistakes Hiding in Your Loops and Queries

Blog Summary

Slow PHP is rarely slow because of PHP. It's usually a query inside a loop, a lookup repeated ten thousand times, or a whole table loaded into memory. Six common mistakes with before-and-after code, plus one myth you can stop worrying about.

Read more
  • 53
  • 98
  • 22

SOLID Principles With Practical PHP Examples (and When to Ignore Them)

SOLID Principles With Practical PHP Examples (and When to Ignore Them)

Blog Summary

SOLID gets taught with shapes and animals, then applied with fifteen interfaces for a feature that needed one class. Here are the five principles with real PHP examples, the smell each one fixes, and when to leave them alone.

Read more
  • 20
  • 148
  • 24

File Upload Security Mistakes in PHP Apps (and the Safe Laravel Way)

File Upload Security Mistakes in PHP Apps (and the Safe Laravel Way)

Blog Summary

An upload form lets a stranger put a file on your server. Five classic PHP upload mistakes, from trusting the MIME type to storing files in the web root, why each one is dangerous, and the safe Laravel approach.

Read more
  • 41
  • 72
  • 20

Regular Expressions Without Fear: The Dozen Pieces You Actually Need

Regular Expressions Without Fear: The Dozen Pieces You Actually Need

Blog Summary

Regex looks like a cat walked across your keyboard, but everyday patterns use about a dozen building blocks. Build one step by step, learn greedy vs lazy and named groups, and know when a real parser is the better tool.

Read more
  • 133
  • 141
  • 4

Laravel Collections: Ten Methods That Replace Your foreach Loops

Laravel Collections: Ten Methods That Replace Your foreach Loops

Blog Summary

Most loops in application code do one of ten jobs, and Laravel collections have a named method for each. Here are map, filter, keyBy, partition, pipe and five more, with the gotchas and the cases where a loop still wins.

Read more
  • 148
  • 96
  • 22

Gemini 3, GPT-5.1 and PHP 8.5: A Busy November for Developers

21 Nov 2025Category : News
Gemini 3, GPT-5.1 and PHP 8.5: A Busy November for Developers

Blog Summary

Nine days, three big releases: OpenAI's GPT-5.1, Google's Gemini 3 with the agent-first Antigravity environment, and PHP 8.5 with the pipe operator. What each means for developers, and what to do this week.

Read more
  • 24
  • 11
  • 13

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close