{"id":13660264,"url":"https://github.com/wataridori/solid-php-example","last_synced_at":"2026-01-23T02:24:54.450Z","repository":{"id":49828870,"uuid":"56561484","full_name":"wataridori/solid-php-example","owner":"wataridori","description":"Some examples about SOLID Design Principles in PHP","archived":false,"fork":false,"pushed_at":"2022-10-30T11:19:42.000Z","size":7,"stargazers_count":453,"open_issues_count":3,"forks_count":131,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-24T19:40:33.148Z","etag":null,"topics":["php","principles","solid"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wataridori.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-19T03:25:07.000Z","updated_at":"2025-04-14T11:41:17.000Z","dependencies_parsed_at":"2023-01-20T09:47:43.571Z","dependency_job_id":null,"html_url":"https://github.com/wataridori/solid-php-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wataridori/solid-php-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fsolid-php-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fsolid-php-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fsolid-php-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fsolid-php-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wataridori","download_url":"https://codeload.github.com/wataridori/solid-php-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fsolid-php-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28678235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","principles","solid"],"created_at":"2024-08-02T05:01:19.452Z","updated_at":"2026-01-23T02:24:54.436Z","avatar_url":"https://github.com/wataridori.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"## SOLID Principles Examples in PHP\n\n### Single Responsibility Principle ([Example](./1-single-responsibility-principle.php))\nThis principle is about **actors and high level architecture**.\n\u003e A class should have one, and only one, reason to change.\n\n### Open Closed Principle ([Example](./2-open-closed-principle.php))\nThis principle is about **class design and feature extensions**.\n\u003e A class should be open for extension, but closed for modification.\n\n### Liskov Substitution Principle ([Example](./3-liskov-substitution-principle.php))\nThis principle is about **subtyping and inheritance**\n\u003e Derived classes must be substitutable for their base classes.\n\n### Interface Segregation Principle ([Example](./4-interface-segregation-principle.php))\nThis principle is about **business logic to clients communication**.\n\u003e Many client-specific interfaces are better than one general-purpose interface.\n\n### Dependency Inversion Principle ([Example](./5-dependency-inversion-principle.php))\nThis principle wires up all **other four principles in a single circle**.\n\u003e Depend upon abstractions. Do not depend upon concretions.\n\n#### For more information about *Object Oriented Design Principles*, you can refer [this slide](https://viblo.asia/thangtd90/posts/pVYRPJPmG4ng)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwataridori%2Fsolid-php-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwataridori%2Fsolid-php-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwataridori%2Fsolid-php-example/lists"}