Project Description (وصف المشروع)
I developed a robust and scalable back-end system for a comprehensive E-commerce platform. This project is engineered using Laravel 12 and PHP 8.2+, focusing heavily on Clean Code, SOLID Principles, and Design Patterns to ensure maintainability and high performance.
The API handles complex business logic including secure authentication, dynamic cart management, and a flexible payment system integrated with Stripe. It allows frontend applications (Web/Mobile) to consume data seamlessly.
Key Features (أهم المميزات)
Authentication & Security: Implemented secure user authentication using Laravel Sanctum, including Role-Based Access Control (RBAC) and Social Login via Google/Facebook (Socialite).
Advanced Payment System: Built a scalable payment module using the Factory and Strategy Design Patterns, integrating Stripe via Laravel Cashier. The architecture allows for easy addition of other gateways like PayPal or Paymob without code refactoring.
Product & Cart Management: Full CRUD operations for products/categories with inventory validation and a dynamic shopping cart system (add, update, remove items).
Professional Documentation: Integrated Swagger (OpenAPI) to generate interactive API documentation, facilitating easy integration for frontend developers.
Testing: Ensured system stability with Unit and Feature tests using Pest PHP framework.
Technical Stack (التقنيات المستخدمة)
Backend Framework: Laravel 12.x
Language: PHP 8.2+
Database: MySQL
API Documentation: L5-Swagger / OpenAPI
Payment Processing: Laravel Cashier (Stripe) & MoneyPHP
Testing: Pest PHP
Architecture: MVC, Repository Pattern, Factory Pattern.