Skip to content
View MuhammedMSalama's full-sized avatar
🏠
Work from home
🏠
Work from home
  • https://al-ula.com.sa
  • Cairo, 6th Of October City 12573, EG
  • 00:22 (UTC +03:00)
  • LinkedIn in/mohamed2050

Block or report MuhammedMSalama

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
MuhammedMSalama/README.md
Muhammed Salama

Backend Engineer  ·  Laravel  ·  API Architecture  ·  Egypt

         


I build production Laravel backends for logistics, real estate, and multi-vendor commerce — focusing on scalable REST APIs, maintainable architecture, and developer tooling.

Authorization lives at the service layer, not the route. Every endpoint returns a consistent response envelope. AI integrations are session-managed, streamed over SSE, and isolated at service boundaries.

$muhammed = [
    'stack'        => ['PHP 8+', 'Laravel', 'MySQL', 'PostgreSQL', 'Redis'],
    'architecture' => ['Repository–Service', 'SOLID', 'Clean Architecture', 'DTO', 'API Versioning'],
    'testing'      => ['PHPUnit', 'Pest'],
    'open_source'  => 'muhammedsalama/laravel-base',
    'focus'        => ['API Design', 'Backend Architecture', 'Developer Tooling'],
    'location'     => 'Egypt',
];

Live Projects

Exspeeds

Logistics platform covering shipment intake, tracking, dispatch, and financial reconciliation across a multi-tenant system with three-tier RBAC.

 

Laravel · REST API · RBAC · Multi-tenant

P-Adviser

Bilingual (AR/EN) real estate consulting platform. Single API backend serving separate client and admin surfaces — AI assistance, real-time messaging, PDF generation, and bulk data import.

   

Laravel · i18n · RBAC · Pusher · OpenAI · SSE

BWW Store

Backend engineering for a production multi-vendor e-commerce platform, focusing on scalable REST APIs, maintainable architecture, and core platform development.

Laravel · REST API · Platform APIs

Drosat

Backend API contribution on a production Laravel platform as part of the AiTech engineering team.

Laravel · REST API · AiTech

Case Study — Exspeeds Logistics Platform

Problem — Operations across shipment intake, dispatch, and financial reconciliation were managed through disconnected tools with no unified API layer.

Architecture — Modular REST API with Repository–Service separation. Three-tier RBAC (admin / operations / client) enforced at the service layer, not the route. Tenant isolation applied at the repository layer via a shared constraint — covering all modules without per-endpoint guard logic.

Engineering Decisions

  • Shipment state machine rejects invalid status progressions before persistence — handles concurrent writes without distributed locking overhead
  • Financial reconciliation maintains query accuracy and performance as operational data volume accumulates
  • Tenant data boundaries applied through base repository scoping, preventing per-controller isolation drift

Outcome — Production API at api.exspeeds.com, stable enough for frontend integration without schema change coordination.


Case Study — P-Adviser Consulting Platform

Problem — A bilingual (AR/EN) consulting platform serving both end users and an admin team through a single API backend. Required AI assistance, real-time messaging, document generation, and bulk import — each with distinct access control.

Architecture — Service-layer RBAC separates client and admin concerns. Multi-language content is resolved via localized model attributes; query logic stays uniform regardless of locale. OpenAI and Pusher integrations are isolated at dedicated service boundaries — provider or transport changes are contained to the service implementation.

Engineering Decisions

  • AI session management: conversation state scoped per user prevents context bleed. Responses stream over SSE. The service boundary means the underlying model provider can change without touching consuming controllers.
  • Chat system: Pusher-backed private conversations with a full message lifecycle — delivery, per-participant read-state, and attachment support. Threads are entity-linked and can be anchored to specific platform objects (properties, inquiries).
  • Excel import: row-level validation runs server-side with structured per-row error reporting returned to the client. Business rules enforced at the service layer, not the controller.
  • Admin surface: separate subdomain with its own session boundary. Service-layer authorization covers all admin routes regardless of HTTP method or controller entry point.

Outcome — Production at p-adviser.com, admin at dashboard.p-adviser.com, API docs at api.p-adviser.com/docs.


Open Source — laravel-base

GitHub: MuhammedMSalama/LaravelBase  ·  Packagist: muhammedsalama/laravel-base

Built after repeatedly solving the same architectural problems across production projects. One Artisan command generates a complete, architecture-enforcing REST API module: auto-bound Repository–Service contracts, whitelist-filtered queries, OpenAPI-annotated controllers, and a consistent ApiResponse envelope — applied uniformly across every module.

composer require muhammedsalama/laravel-base
php artisan make:module Product
# Generates: Model · Migration · Enum · Filter+Pagination · Interface
#            Repository · Service · Requests · Resource+Collection
#            Policy · Controller (Swagger/OA annotations) · Feature & Unit tests
Problem Solution
Manual service-provider wiring per module Repository–Service contracts auto-bound by naming convention
Unsafe or uncontrolled query filtering Whitelist-based AbstractFilter with built-in pagination
Multi-driver migration differences MySQL / PostgreSQL / SQLite detected at runtime
No OpenAPI coverage by default Generated controllers include @OA\* annotations
Inconsistent API response shapes ApiResponse envelope enforced across all modules
Laravel version fragmentation Laravel 10 · 11 · 12 · 13 — PHP 8.1+, no upper-bound constraint


Selected Engineering Contributions

Domain Implementation
AI / LLM Integration Session-scoped OpenAI, SSE streaming, isolated service boundary — P-Adviser
Real-time Systems Pusher private messaging — per-participant read-state, attachment support, entity-linked threads — P-Adviser
Backend APIs Production platform systems for a large-scale e-commerce platform — BWW Store
Production Backend Systems Scalable REST APIs across production logistics and e-commerce systems — Exspeeds · BWW Store
Reporting APIs Reporting APIs with scalable aggregation endpoints — BWW Store
Multi-tenant RBAC Service-layer authorization, role-based access control across tenant boundaries — Exspeeds · P-Adviser
i18n API Design AR/EN bilingual via localized model attributes — uniform query logic across locales — P-Adviser
Bulk Data Processing Server-side row-level validation, structured per-row error reporting — P-Adviser
Open Source laravel-base — architecture-enforcing scaffolding, OpenAPI by default, Laravel 10–13

Project Portfolio — 10 backend system types
System Problem Key Engineering
Multi-Vendor E-Commerce Isolated vendor storefronts, shared catalog, unified order management Scalable multi-vendor backend architecture, secure API design, reliable payment integration
Logistics Management End-to-end shipment lifecycle — tracking, dispatch, reporting, reconciliation State machine for shipment transitions; performant aggregation at operational volume
CRM Lead pipeline, customer records, activity history, automated notifications Flexible RBAC, activity-log integrity, cross-module notification routing
REST API Platforms Versioned, authenticated, rate-limited APIs with OpenAPI documentation Contract stability across versions during active product development
Dashboard Systems RBAC dashboards with real-time data and exportable reports Role-scoped aggregation with query performance maintained at scale
Authentication Systems OAuth2, Sanctum, email verification, 2FA, session lifecycle Secure token handling across web and API consumers with consistent revocation
Payment Integrations Gateway abstraction, webhook verification, reconciliation, refund handling Idempotent webhook processing; accurate financial state under concurrent load
Real-Time Chat User-to-user messaging with conversation history, read receipts, contact management, and entity-linked threads Event-driven delivery via Pusher broadcasting; sender-receiver indexed history; message state tracking per conversation
AI-Backed APIs Contextual assistant backend with persistent conversation state and real-time response delivery Session-scoped context management, Server-Sent Events for streaming, OpenAI integration isolated at the service layer
Data Import Pipelines API-first bulk data ingestion from external sources with business rule enforcement Server-side row-level validation, domain rule enforcement at the service layer, structured error reporting via Laravel Excel

Tech Stack

Sanctum / OAuth2  ·  Pusher  ·  SSE  ·  Queues  ·  Repository–Service  ·  DTO  ·  API Versioning  ·  RBAC  ·  PHPUnit  ·  Pest  ·  Laravel Excel


GitHub Stats

 


Available for backend consulting, freelance collaborations, and open-source contributions.

   

Pinned Loading

  1. ChatMessage ChatMessage Public

    Chat Message API is a Laravel-based real-time messaging system using repositories, interfaces, services, and enums, with Pusher for instant updates. It follows an API-only architecture and includes…

    PHP 22 10

  2. ChatBot ChatBot Public

    🚀 AI Chat System with Laravel 11 *A secure REST API integrating OpenAI's GPT-3.5-turbo for intelligent chatbot functionality, built with modern Laravel practices.*

    PHP 1 1

  3. Crud_Forge Crud_Forge Public

    PHP 1

  4. LaravelBase LaravelBase Public

    A lightweight, version-agnostic Laravel package providing a clean Repository–Service architecture with interfaces, external Form-Request validation, an ApiResponse helper, reusable traits, and a ma…

    PHP 7 1