{"id":21953858,"url":"https://github.com/anayarojo/solid-examples","last_synced_at":"2026-04-13T22:03:11.613Z","repository":{"id":96111738,"uuid":"299167214","full_name":"anayarojo/solid-examples","owner":"anayarojo","description":"Repository for see examples of SOLID principles","archived":false,"fork":false,"pushed_at":"2020-10-16T04:30:09.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T18:36:46.200Z","etag":null,"topics":["csharp","javascript","php","solid","typescript"],"latest_commit_sha":null,"homepage":"","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/anayarojo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-28T02:38:18.000Z","updated_at":"2020-10-16T04:30:11.000Z","dependencies_parsed_at":"2023-04-30T19:16:51.016Z","dependency_job_id":null,"html_url":"https://github.com/anayarojo/solid-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anayarojo/solid-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anayarojo%2Fsolid-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anayarojo%2Fsolid-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anayarojo%2Fsolid-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anayarojo%2Fsolid-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anayarojo","download_url":"https://codeload.github.com/anayarojo/solid-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anayarojo%2Fsolid-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31772643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csharp","javascript","php","solid","typescript"],"created_at":"2024-11-29T07:13:39.284Z","updated_at":"2026-04-13T22:03:11.594Z","avatar_url":"https://github.com/anayarojo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOLID examples\n\nRepository for see examples of SOLID principles\n\n### S – Single Responsibility Principle (SRP)\nThis principle is about **actors and high level architecture**.\n\u003e A class should have one, and only one, reason to change.\n\n[PHP](./php/01-single-responsibility-principle.php) / \n[C#](./c%23/01-SingleResponsibilityPrinciple.cs) / \n[TS](./ts/01-singleResponsibilityPrinciple.ts)\n\n### O – Open/Closed Principle (OCP)\nThis principle is about **class design and feature extensions**.\n\u003e A class should be open for extension, but closed for modification.\n\n[PHP](./php/02-open-closed-principle.php) / \n[C#](./c%23/02-OpenClosedPrinciple.cs) / \n[TS](./ts/02-openClosedPrinciple.ts)\n\n### L – Liskov Substitution Principle (LSP)\nThis principle is about **subtyping and inheritance**\n\u003e Derived classes must be substitutable for their base classes.\n\n[PHP](./php/03-liskov-substitution-principle.php) / \n[C#](./c%23/03-LiskovSubstitutionPrinciple.cs) / \n[TS](./ts/03-liskovSubstitutionPrinciple.ts)\n\n### I – Interface Segregation Principle (ISP)\nThis principle is about **business logic to clients communication**.\n\u003e Many client-specific interfaces are better than one general-purpose interface.\n\n[PHP](./php/04-interface-segregation-principle.php) / \n[C#](./c%23/04-InterfaceSegregationPrinciple.cs) / \n[TS](./ts/04-interfaceSegregationPrinciple.ts)\n\n### D – Dependency Inversion Principle (DIP)\nThis principle wires up all **other four principles in a single circle**.\n\u003e Depend upon abstractions. Do not depend upon concretions.\n\n[PHP](./php/05-dependency-inversion-principle.php) / \n[C#](./c%23/05-DependencyInversionPrinciple.cs) / \n[TS](./ts/05-dependencyInversionPrinciple.ts)\n\n## Targets of SOLID\n\n- Cleaner code\n- Maintanable code\n- Easy to change\n- Easy to extend\n\n#### References\n\n(English)\n\nhttps://www.digitalocean.com/community/conceptual_articles/s-o-l-i-d-the-first-five-principles-of-object-oriented-design\n\nhttps://hackernoon.com/solid-principles-made-easy-67b1246bcdf\n\nhttps://itnext.io/solid-principles-explanation-and-examples-715b975dcad4\n\nhttps://www.baeldung.com/solid-principles\n\n(Spanish)\n\nhttps://openwebinars.net/blog/que-es-solid/\n\nhttps://profile.es/blog/principios-solid-desarrollo-software-calidad/\n\n#### Forked from \nhttps://github.com/wataridori/solid-php-example","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanayarojo%2Fsolid-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanayarojo%2Fsolid-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanayarojo%2Fsolid-examples/lists"}