Articles | Mohamed Said      [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://msaied.com) - [Home](https://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [About](https://msaied.com#about)

           [  Contact](https://msaied.com#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://msaied.com)
- [ProjectsCase studies](https://msaied.com/projects)
- [ArticlesEngineering notes](https://msaied.com/articles)
- [CertificatesCredentials](https://msaied.com/certificates)
- [AboutHow I work](https://msaied.com#about)
- [ContactGet in touch](https://msaied.com#contact)

  [Start a conversation](https://msaied.com#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

  1. [Home](https://msaied.com)
2. /
3. Articles

  Engineering library
====================

 106 articles by Mohamed Said on Laravel, PHP, databases, APIs and infrastructure, written from production work.

 Search articles ⌕×Search 

    Topic hubs
----------

←→

- [AI48 articles](https://msaied.com/articles?category=ai&search=PHP&sort=new)
- [Composer Pacakge80 articles](https://msaied.com/articles?category=composer-pacakge&search=PHP&sort=new)
- [Filament27 articles](https://msaied.com/articles?category=filament&search=PHP&sort=new)
- [Laravel266 articles](https://msaied.com/articles?category=laravel&search=PHP&sort=new)
- [Livewire13 articles](https://msaied.com/articles?category=livewire&search=PHP&sort=new)
- [Open Source44 articles](https://msaied.com/articles?category=open-source&search=PHP&sort=new)
- [PHP27 articles](https://msaied.com/articles?category=php&search=PHP&sort=new)
- [Tips &amp; Tricks32 articles](https://msaied.com/articles?category=tips-tricks&search=PHP&sort=new)

  Topics
------

 [All topics](https://msaied.com/articles?search=PHP&sort=new) [AI 48](https://msaied.com/articles?category=ai&search=PHP&sort=new) [Composer Pacakge 80](https://msaied.com/articles?category=composer-pacakge&search=PHP&sort=new) [Filament 27](https://msaied.com/articles?category=filament&search=PHP&sort=new) [Laravel 266](https://msaied.com/articles?category=laravel&search=PHP&sort=new) [Livewire 13](https://msaied.com/articles?category=livewire&search=PHP&sort=new) [Open Source 44](https://msaied.com/articles?category=open-source&search=PHP&sort=new) [PHP 27](https://msaied.com/articles?category=php&search=PHP&sort=new) [Tips &amp; Tricks 32](https://msaied.com/articles?category=tips-tricks&search=PHP&sort=new)    106 articles
-------------

Topics    Sort articles Newest first  Oldest first  Sort  

 [Search: PHP ×Remove search](https://msaied.com/articles?sort=new) [ Clear filters](https://msaied.com/articles) 

  [![](https://cdn.msaied.com/790/3b305e067cf21c59b93a26f96786fabd.png)](https://msaied.com/articles/postgresql-window-functions-in-laravel-ranking-running-totals-and-gap-detection-3)17 Oct 2026·2 min read 

### [PostgreSQL Window Functions in Laravel: Ranking, Running Totals, and Gap Detection](https://msaied.com/articles/postgresql-window-functions-in-laravel-ranking-running-totals-and-gap-detection-3) 

 Window functions let you compute rankings, running totals, and gaps directly in SQL without pulling rows into PHP. Learn how to use them cleanly from Laravel's query builder.

   [![](https://cdn.msaied.com/789/40fed96a77e341e8fdd2b49f888d1d92.png)](https://msaied.com/articles/event-sourcing-in-laravel-aggregates-projectors-and-reactors-without-a-framework)17 Oct 2026·4 min read 

### [Event Sourcing in Laravel: Aggregates, Projectors, and Reactors Without a Framework](https://msaied.com/articles/event-sourcing-in-laravel-aggregates-projectors-and-reactors-without-a-framework) 

 Build a lean event-sourced system in Laravel using plain PHP classes, Eloquent event streams, and synchronous projectors — no heavy package required. Practical patterns for aggregates, snapshots, and read-model rebuilds.

   [![](https://cdn.msaied.com/779/4902f058ccaf431ff6d22b3926097884.png)](https://msaied.com/articles/php-news-a-new-site-for-php-releases-rfcs-and-packages)13 Oct 2026·3 min read 

### [PHP News: A New Site for PHP Releases, RFCs, and Packages](https://msaied.com/articles/php-news-a-new-site-for-php-releases-rfcs-and-packages) 

 Eric L. Barnes and Matt Stauffer have launched PHP News (phpnews.net), a dedicated site covering PHP releases, RFCs, packages, and community events — keeping Laravel News focused on Laravel.

 [PHP](https://msaied.com/articles?category=php) 

   [![](https://cdn.msaied.com/777/9ffc1bfe88806626f495f3ef307e0b69.png)](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-4)11 Oct 2026·4 min read 

### [BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-4) 

 BashBox is a pure-PHP bash interpreter that lets AI agents run shell scripts safely — no proc\_open, no exec, no shell\_exec. It ships 58 commands, a virtual filesystem, configurable execution limits, and optional network access.

 [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) [AI](https://msaied.com/articles?category=ai) 

   [![](https://cdn.msaied.com/775/9ffc1bfe88806626f495f3ef307e0b69.png)](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-3)11 Oct 2026·4 min read 

### [BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-3) 

 BashBox is a pure-PHP bash interpreter that lets AI agents run shell scripts safely — no proc\_open, no exec, no shell\_exec. It ships 58 commands, a virtual filesystem, configurable execution limits, and optional network access.

 [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) [AI](https://msaied.com/articles?category=ai) 

   [![](https://cdn.msaied.com/774/9ffc1bfe88806626f495f3ef307e0b69.png)](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-2)11 Oct 2026·4 min read 

### [BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-2) 

 BashBox is a pure-PHP bash interpreter that lets AI agents run shell scripts safely — no proc\_open, no exec, no shell\_exec. It ships 58 commands, a virtual filesystem, configurable execution limits, and optional network access.

 [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) [AI](https://msaied.com/articles?category=ai) 

   [![](https://cdn.msaied.com/771/c168cfa614dbed6663e8550e8d20a489.png)](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-1)11 Oct 2026·4 min read 

### [BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php-1) 

 BashBox is a pure-PHP bash interpreter that lets AI agents run shell scripts safely—no proc\_open, no exec, no shell\_exec. It ships 58 commands, a virtual filesystem, configurable execution limits, and optional network access.

 [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) [AI](https://msaied.com/articles?category=ai) 

   [![](https://cdn.msaied.com/770/9ffc1bfe88806626f495f3ef307e0b69.png)](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php)11 Oct 2026·4 min read 

### [BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP](https://msaied.com/articles/bashbox-a-sandboxed-bash-interpreter-for-ai-agents-in-php) 

 BashBox is a pure-PHP bash interpreter that lets AI agents run shell scripts safely — no proc\_open, no exec, no shell\_exec. It ships 58 commands, a virtual filesystem, configurable execution limits, and optional network access.

 [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) [AI](https://msaied.com/articles?category=ai) 

   [![](https://cdn.msaied.com/746/496c70db85d5a374cca5e7f9c0a182a8.png)](https://msaied.com/articles/grant-enum-based-roles-and-permissions-for-laravel)5 Oct 2026·3 min read 

### [Grant: Enum-Based Roles and Permissions for Laravel](https://msaied.com/articles/grant-enum-based-roles-and-permissions-for-laravel) 

 Grant is a Laravel package that lets you define roles and permissions as PHP enums, stores assignments in the database, and routes all checks through Laravel's Gate so can(), Gate::authorize(), and @can work out of the box.

 [Laravel](https://msaied.com/articles?category=laravel) [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) 

   ← Newer1. 1
2. [2](https://msaied.com/articles?search=PHP&page=2)
3. [3](https://msaied.com/articles?search=PHP&page=3)
4. [4](https://msaied.com/articles?search=PHP&page=4)
5. [5](https://msaied.com/articles?search=PHP&page=5)
6. [6](https://msaied.com/articles?search=PHP&page=6)
7. [7](https://msaied.com/articles?search=PHP&page=7)
8. [8](https://msaied.com/articles?search=PHP&page=8)
9. [9](https://msaied.com/articles?search=PHP&page=9)
10. [10](https://msaied.com/articles?search=PHP&page=10)
11. [11](https://msaied.com/articles?search=PHP&page=11)
12. [12](https://msaied.com/articles?search=PHP&page=12)

 1 / 12 [Older →](https://msaied.com/articles?search=PHP&page=2)   

  Have a technical challenge?
----------------------------

Tell me what you’re building. I reply within two working days.

 [Discuss your project ↗](https://msaied.com#contact) 

Topics
------

Close 

 [All topics](https://msaied.com/articles) [AI (48) ](https://msaied.com/articles?category=ai&search=PHP&sort=new) [Composer Pacakge (80) ](https://msaied.com/articles?category=composer-pacakge&search=PHP&sort=new) [Filament (27) ](https://msaied.com/articles?category=filament&search=PHP&sort=new) [Laravel (266) ](https://msaied.com/articles?category=laravel&search=PHP&sort=new) [Livewire (13) ](https://msaied.com/articles?category=livewire&search=PHP&sort=new) [Open Source (44) ](https://msaied.com/articles?category=open-source&search=PHP&sort=new) [PHP (27) ](https://msaied.com/articles?category=php&search=PHP&sort=new) [Tips &amp; Tricks (32) ](https://msaied.com/articles?category=tips-tricks&search=PHP&sort=new)  

  © 2026 Mohamed Said · Built with Laravel, meant to last.Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

 - [Home](https://msaied.com)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [GitHub](https://github.com/EG-Mohamed)
- [LinkedIn](https://www.linkedin.com/in/msaiedm/)
- [WhatsApp](https://wa.me/201094619204)
- [Email Address](mailto:hello@msaied.com)
- [My CV](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
- [Sitemap](https://msaied.com/sitemap.xml)
