Skip to content

HamzaHassanM/SOLID

Repository files navigation

SOLID Principles in Laravel

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.

English

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.

Examples

Explore the examples and see how applying SOLID principles can improve your code.

اللغة العربية

يقدم هذا المستودع شرحًا لمبادئ SOLID مع أمثلة تطبيقية باستخدام Laravel. مبادئ SOLID هي مجموعة من المبادئ التصميمية التي تساعد المطورين في إنشاء برامج أكثر فهمًا ومرونة وصيانة.

تتضمن مبادئ SOLID:

يتم توضيح كل مبدأ مع أمثلة من الكود وشرح لكيفية تطبيق هذه المبادئ بشكل فعال في مشاريع Laravel الخاصة بك.

أمثلة

  • مبدأ المسؤولية الواحدة (SRP)
  • مبدأ الفتح/الإغلاق (OCP)
  • مبدأ استبدال ليسكوف (LSP)
  • مبدأ تقسيم الواجهة (ISP)
  • مبدأ عكس الاعتماديات (DIP)

استعرض الأمثلة وشاهد كيف يمكن أن يحسن تطبيق مبادئ SOLID من جودة كودك.

Getting Started

To get started with the examples, clone this repository and follow the instructions in each example file.

Clone the Repository

git clone https://github.com/HamzaHassanM/SOLID

About

SOLID Principles with Laravel examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published