Writing

Notes on Laravel, integrations, and AI.

dijkstra vs the new deterministic sssp algorithm: easy guide, php examples, and visuals

dijkstra vs the new deterministic sssp algorithm: easy guide, php examples, and visuals

A simple guide to single-source shortest paths. Learn Dijkstra’s algorithm, understand the new deterministic SSSP that breaks the sorting barrier, and see side-by-side PHP examples with visuals and charts.
Read article
hacked the laravel artisan route command to enforce route naming conventions

hacked the laravel artisan route command to enforce route naming conventions

I just hacked the Laravel Artisan Route Command to assert whether the routes are following the route naming convention or not.
Read article
laravel utm tracking: built-in simplicity beats third-party complexity

laravel utm tracking: built-in simplicity beats third-party complexity

Learn why I chose to write a custom Laravel middleware instead of using a third-party package to track UTM parameters on my personal site. Sometimes, small problems deserve simple solutions
Read article
my first open source ai contribution: fixing laravel prismphp’s ollama stream bug

my first open source ai contribution: fixing laravel prismphp’s ollama stream bug

Made my first open-source contribution in the AI space by fixing a stream handling bug in the Laravel prismphp package used with Ollama. Debugged the issue, patched the code, and got the PR merged into the official repo.
Read article
why you should touch the code that’s “working just fine”

why you should touch the code that’s “working just fine”

Refactoring isn’t about fixing what’s broken—it’s about making your codebase stronger, cleaner, and more maintainable. Here's a real-world example of how I refactored 73% of a Laravel module using architectural tests and conventions.
Read article
enforcing clean controller design in laravel with pestphp architectural testing

enforcing clean controller design in laravel with pestphp architectural testing

Learn how to use PestPHP for architectural testing in Laravel to ensure invokable controllers only contain __construct and __invoke methods.
Read article
14 years in tech – a journey of curiosity, craft, and commitment

14 years in tech – a journey of curiosity, craft, and commitment

Celebrating 14 years in tech, Muhammad Huzaifa reflects on his journey from writing his first line of code to leading global projects, mentoring teams, and embracing both foundational skills and modern AI tools.
Read article
enhancing laravel's apache solr integration with php-fig psr standards compliance

enhancing laravel's apache solr integration with php-fig psr standards compliance

Discover the importance of PHP PSR-0 standards in open-source projects. Learn how a recent contribution improved a Laravel-Apache Solr integration package, making it more maintainable and developer-friendly. Get insights on standards compliance and the impact on collaboration.
Read article
fixing a hash mismatch bug in zen php sdk: ensuring accurate payment data validation

fixing a hash mismatch bug in zen php sdk: ensuring accurate payment data validation

Discover how a bug in the Zen PHP SDK affecting payment validation was resolved. Learn about the importance of data precision in hash generation to ensure secure and accurate Instant Payment Notification (IPN) handling.
Read article