This repository provides explanations of SOLID principles with examples using Laravel. SOLID is a set of design principles that help developers create more understandable, flexible, and maintainable software.
This repository explains the SOLID principles through practical examples in Laravel. SOLID stands for:
- S: Single Responsibility Principle
- O: Open/Closed Principle
- L: Liskov Substitution Principle
- I: Interface Segregation Principle
- D: Dependency Inversion Principle
Each principle is illustrated with code samples and explanations to help you understand how to apply these principles effectively in your Laravel projects.
- Single Responsibility Principle (SRP)
- Open/Closed Principle (OCP)
- Liskov Substitution Principle (LSP)
- Interface Segregation Principle (ISP)
- Dependency Inversion Principle (DIP)
Explore the examples and see how applying SOLID principles can improve your code.
يقدم هذا المستودع شرحًا لمبادئ SOLID مع أمثلة تطبيقية باستخدام Laravel. مبادئ SOLID هي مجموعة من المبادئ التصميمية التي تساعد المطورين في إنشاء برامج أكثر فهمًا ومرونة وصيانة.
تتضمن مبادئ SOLID:
- S: مبدأ المسؤولية الواحدة
- O: مبدأ الفتح/الإغلاق
- L: مبدأ استبدال ليسكوف
- I: مبدأ تقسيم الواجهة
- D: مبدأ عكس الاعتماديات
يتم توضيح كل مبدأ مع أمثلة من الكود وشرح لكيفية تطبيق هذه المبادئ بشكل فعال في مشاريع Laravel الخاصة بك.
- مبدأ المسؤولية الواحدة (SRP)
- مبدأ الفتح/الإغلاق (OCP)
- مبدأ استبدال ليسكوف (LSP)
- مبدأ تقسيم الواجهة (ISP)
- مبدأ عكس الاعتماديات (DIP)
استعرض الأمثلة وشاهد كيف يمكن أن يحسن تطبيق مبادئ SOLID من جودة كودك.
To get started with the examples, clone this repository and follow the instructions in each example file.
git clone https://github.com/HamzaHassanM/SOLID