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

What Actually Happens When You Run composer install

What Actually Happens When You Run composer install

Blog Summary

It's the PHP command you run most and read least. Follow composer install step by step: the lock file fork, platform checks, the autoloader, Laravel's scripts, semantic versioning and why the lock file belongs in Git.

Read more
  • 95
  • 70
  • 22

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Blog Summary

An Arabic name goes in, four question marks come out. Encoding bugs leave fingerprints: here's how to read them, why MySQL's utf8 isn't UTF-8, and the PHP string traps that cut letters in half.

Read more
  • 105
  • 115
  • 9

Laravel Policies and Gates: Authorization Done Properly

Laravel Policies and Gates: Authorization Done Properly

Blog Summary

Copy-pasted if-checks are how authorization bugs are born. Here's how to move every rule into Laravel policies and gates, avoid the before() trap, filter lists properly and test who gets denied.

Read more
  • 73
  • 110
  • 18

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
  • 100
  • 103
  • 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
  • 21
  • 39
  • 5

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
  • 75
  • 89
  • 16

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