{"id":13660332,"url":"https://github.com/eimg/design-patterns-php","last_synced_at":"2025-04-24T19:30:48.415Z","repository":{"id":141772621,"uuid":"122437978","full_name":"eimg/design-patterns-php","owner":"eimg","description":"Most simplest design pattern implementation in PHP, including all 23 GoF patterns plus some other patterns","archived":false,"fork":false,"pushed_at":"2018-02-22T12:48:53.000Z","size":16,"stargazers_count":193,"open_issues_count":1,"forks_count":63,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-11-10T14:42:22.690Z","etag":null,"topics":["design-patterns","oop","php"],"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/eimg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-22T06:09:26.000Z","updated_at":"2024-10-27T16:33:48.000Z","dependencies_parsed_at":"2024-01-22T03:59:44.135Z","dependency_job_id":"3df198ae-7d93-4889-aa0a-14f4872cdd28","html_url":"https://github.com/eimg/design-patterns-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eimg%2Fdesign-patterns-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eimg%2Fdesign-patterns-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eimg%2Fdesign-patterns-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eimg%2Fdesign-patterns-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eimg","download_url":"https://codeload.github.com/eimg/design-patterns-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250693475,"owners_count":21472268,"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":["design-patterns","oop","php"],"created_at":"2024-08-02T05:01:20.200Z","updated_at":"2025-04-24T19:30:48.041Z","avatar_url":"https://github.com/eimg.png","language":"PHP","readme":"# Design Patterns by Examples in PHP\n\nMost simplest design pattern implementation in PHP, including all 23 GoF patterns plus some other patterns. These code are part of **PHP Framework Course** provided by [Fairway Technology](https://fairway.com.mm).\n\n## How to learn?\n\nRead the code.\n\n### Creational Patterns\n1. [Factory Method](1-factory.php)\n2. [Abstract Factory](2-abstract-factory.php)\n3. [Builder](3-builder.php)\n4. [Singleton](4-singleton.php)\n5. [Prototype](5-prototype.php)\n\n### Structural Patterns\n1. [Adapter](6-adapter.php)\n2. [Decorator](7-decorator.php)\n3. [Facade](8-facade.php)\n4. [Proxy](9-proxy.php)\n5. [Composite](10-composite.php)\n6. [Bridge](11-bridge.php)\n7. [Flyweight](12-flyweight.php)\n\n### Behavioral Patterns\n1. [Strategy](13-strategy.php)\n2. [Observer](14-observer.php)\n3. [Command](15-command.php)\n4. [Chain of Responsibility](16-chain.php)\n5. [Iterator](17-iterator.php)\n6. [Mediator](18-mediator.php)\n7. [Interpreter](19-interpreter.php)\n8. [State](20-state.php)\n9. [Memento](21-memento.php)\n10. [Visitor](22-visitor.php)\n11. [Template](23-template.php)\n\n### Other (non-GoF)\n1. [Dependency Injection](other/dependency-injection.php)\n2. [Null Object](other/null.php)\n3. [Servant](other/servant.php)\n\n## Note\n\nThese code are oversimplified by design and may not follow all best practices. Use this only as education purpose in attempt to understand the patterns, not as direct example to use in real projects.\n\n## License and Contact\n\n* License - [MIT License](LICENSE.md)\n* Website - [eimaung.com](https://eimaung.com)\n* Email - [eimg@fairwayweb.com](mailto:eimg@fairwayweb.com)\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feimg%2Fdesign-patterns-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feimg%2Fdesign-patterns-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feimg%2Fdesign-patterns-php/lists"}