Writing

Notes on Laravel, integrations, and AI.

pakistan software export board (pseb): a practical guide for pakistan’s tech community

pakistan software export board (pseb): a practical guide for pakistan’s tech community

Guide to PSEB in Pakistan. How it works, how to join, and key benefits for IT companies and freelancers including tax relief, training, and global visibility.
Read article
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 guide to single-source shortest paths: Dijkstra's algorithm and the new deterministic SSSP that breaks the sorting barrier.
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

Why I wrote a custom Laravel middleware instead of a third-party package to track UTM parameters on my personal site.
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

My first open-source AI contribution: fixing a stream handling bug in Laravel prismphp's Ollama integration, merged upstream.
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 a stronger codebase. A real example of refactoring 73% of a Laravel module.
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: reflections on writing my first line of code, leading global projects, and mentoring teams.
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

How a contribution to PHP PSR-0 standards improved a Laravel-Apache Solr integration package's maintainability and collaboration.
Read article