{"id":19946127,"url":"https://github.com/techno-trace/php-design-patterns-presentation","last_synced_at":"2025-03-01T14:16:11.441Z","repository":{"id":250297535,"uuid":"833951146","full_name":"techno-trace/php-design-patterns-presentation","owner":"techno-trace","description":"This app explains the use cases and implementation of design patterns","archived":false,"fork":false,"pushed_at":"2024-07-26T10:26:58.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T05:26:51.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techno-trace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-26T05:36:30.000Z","updated_at":"2024-07-26T10:27:01.000Z","dependencies_parsed_at":"2024-07-26T12:13:45.406Z","dependency_job_id":null,"html_url":"https://github.com/techno-trace/php-design-patterns-presentation","commit_stats":null,"previous_names":["techno-trace/php-design-patterns-presentation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techno-trace%2Fphp-design-patterns-presentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techno-trace%2Fphp-design-patterns-presentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techno-trace%2Fphp-design-patterns-presentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techno-trace%2Fphp-design-patterns-presentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techno-trace","download_url":"https://codeload.github.com/techno-trace/php-design-patterns-presentation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374539,"owners_count":19952545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T00:28:23.912Z","updated_at":"2025-03-01T14:16:11.384Z","avatar_url":"https://github.com/techno-trace.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎉 PHP Design Patterns \u0026 SOLID Principles Repository\n\n![PHP](https://img.shields.io/badge/PHP-777BB4?style=for-the-badge\u0026logo=php\u0026logoColor=white)\n![SOLID](https://img.shields.io/badge/SOLID-FFD700?style=for-the-badge\u0026logo=solid\u0026logoColor=black)\n![KISS](https://img.shields.io/badge/KISS-28A745?style=for-the-badge\u0026logo=kiss\u0026logoColor=white)\n![DRY](https://img.shields.io/badge/DRY-FF4500?style=for-the-badge\u0026logo=dry\u0026logoColor=white)\n![Clean Code](https://img.shields.io/badge/Clean%20Code-3DDC84?style=for-the-badge\u0026logo=clean-code\u0026logoColor=white)\n![Laravel](https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge\u0026logo=laravel\u0026logoColor=white)\n\nWelcome to the **PHP Design Patterns \u0026 SOLID Principles** repository! This project is a comprehensive collection of PHP examples demonstrating various design patterns and the SOLID principles.\n\n## 📚 Design Patterns\n\nDesign patterns are essential for creating robust, scalable, and maintainable code. They provide general reusable solutions to common problems encountered in software design. Here are some benefits:\n\n- **Factory Pattern:** Simplifies object creation by centralizing it, making the code more manageable and flexible.\n- **Specification Pattern:** Enhances flexibility by allowing business rules to be combined in various ways.\n- **Adapter Pattern:** Enables incompatible interfaces to work together, promoting reusability.\n- **Chain of Responsibility Pattern:** Decouples request senders from receivers, allowing multiple handlers to process requests flexibly.\n- **Decorator Pattern:** Adds behavior to objects dynamically without altering their structure.\n- **Observer Pattern:** Facilitates communication between objects, ensuring changes in one object trigger updates in others.\n- **Repository Pattern:** Abstracts data access, making it easier to manage and test.\n- **Strategy Pattern:** Defines a family of algorithms, encapsulates each one, and makes them interchangeable.\n- **Template Method Pattern:** Defines the program skeleton in a method, deferring some steps to subclasses.\n\n## 🔍 SOLID Principles\n\nThe SOLID principles are a set of five design principles intended to make software designs more understandable, flexible, and maintainable:\n\n- **Single Responsibility Principle (SRP):** Ensures a class has only one reason to change, promoting cohesion.\n- **Open/Closed Principle (OCP):** Software entities should be open for extension but closed for modification, enhancing flexibility.\n- **Liskov Substitution Principle (LSP):** Objects of a superclass should be replaceable with objects of a subclass without affecting the correctness, ensuring reliable inheritance.\n- **Interface Segregation Principle (ISP):** Clients should not be forced to depend on interfaces they do not use, promoting decoupling.\n- **Dependency Inversion Principle (DIP):** High-level modules should not depend on low-level modules but on abstractions, fostering modularity.\n\n## 🚀 Getting Started\n\n1. **Clone the repository:**\n    ```bash\n    git clone https://github.com/techno-trace/php-design-patterns-presentation.git\n    cd php-design-patterns-presentation\n    ```\n\n2. **Install dependencies (if any):**\n    ```bash\n    composer install\n    ```\n\n3. **Run examples:**\n\n    Navigate to the specific pattern or principle directory and run the PHP files to see the examples in action.\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📄 License\n\nThis repository is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n---\n\nHappy Coding! 😊","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechno-trace%2Fphp-design-patterns-presentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechno-trace%2Fphp-design-patterns-presentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechno-trace%2Fphp-design-patterns-presentation/lists"}