{"id":13579211,"url":"https://github.com/jkapuscik2/design-patterns-php","last_synced_at":"2025-04-06T10:11:18.436Z","repository":{"id":50679222,"uuid":"208417973","full_name":"jkapuscik2/design-patterns-php","owner":"jkapuscik2","description":"Examples of design patterns in PHP","archived":false,"fork":false,"pushed_at":"2025-01-30T19:27:05.000Z","size":196,"stargazers_count":96,"open_issues_count":1,"forks_count":24,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-30T08:12:12.977Z","etag":null,"topics":["design-patterns","patterns-php","php82"],"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/jkapuscik2.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}},"created_at":"2019-09-14T09:29:18.000Z","updated_at":"2025-02-17T19:27:02.000Z","dependencies_parsed_at":"2024-01-16T20:29:45.387Z","dependency_job_id":"ffcd9ce0-f661-4ac1-8ebe-c8ad3ba817e2","html_url":"https://github.com/jkapuscik2/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/jkapuscik2%2Fdesign-patterns-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkapuscik2%2Fdesign-patterns-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkapuscik2%2Fdesign-patterns-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkapuscik2%2Fdesign-patterns-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkapuscik2","download_url":"https://codeload.github.com/jkapuscik2/design-patterns-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464222,"owners_count":20942970,"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","patterns-php","php82"],"created_at":"2024-08-01T15:01:37.420Z","updated_at":"2025-04-06T10:11:18.417Z","avatar_url":"https://github.com/jkapuscik2.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"## Design Patterns\n\nThis project is set of simple examples of usage of different design patterns in a real world scenarios. Each one have a short description and guideline:\n- [Factory Method](https://medium.com/@j.kapuscik2/getting-started-with-design-patterns-in-php-4d451ccdfb71)\n- [src/Creational Patterns](https://medium.com/@j.kapuscik2/src/Creational-design-patterns-in-php-db365d3245ce)\n- [Observer](https://medium.com/@j.kapuscik2/observer-pattern-in-php-2ba240f89fb2)\n- [Iterator](https://medium.com/@j.kapuscik2/iterator-pattern-in-php-b7624f6bdbcf) \n- [State \u0026 Strategy](https://medium.com/@j.kapuscik2/state-strategy-design-patterns-by-example-f57ebd7b6211) \n- [Template Method](https://medium.com/@j.kapuscik2/template-method-pattern-in-php-6116fd7e8ccc?source=friends_link\u0026sk=ac4c483446bd5a5323c09a662bd54116) \n- [Flyweight](https://medium.com/swlh/flyweight-design-pattern-in-php-edcda0486fb0?source=friends_link\u0026sk=a0fa3083d5afd7e41af8a4f7a1df05f1)\n- [Proxy](https://medium.com/better-programming/proxy-design-pattern-and-how-to-use-it-acd0f11e5330)\n- [Decorator](https://medium.com/better-programming/decorator-c04fae63dfff)\n- [Dependency Injection](https://medium.com/better-programming/dependency-injection-8f09a93ec995)\n- [Composite](https://medium.com/swlh/composite-908878748d0e)\n- [Adapter](https://medium.com/swlh/building-cloud-storage-application-with-adapter-design-pattern-8b0105a1bda7)\n- [Facade](https://medium.com/better-programming/what-is-facade-design-pattern-67cb09ce35d4)\n- [Bridge](https://medium.com/better-programming/what-is-bridge-design-pattern-89bfa581fbd3)\n- [Chain of Responsibility](https://medium.com/@j.kapuscik2/what-is-chain-of-responsibility-design-pattern-ff4d22abd124)\n- [Visitor](https://medium.com/@j.kapuscik2/what-is-visitor-design-pattern-8451fb75876)\n- [Command](https://medium.com/@j.kapuscik2/what-is-cqrs-command-design-pattern-5d400fd9f93a)\n- [Null Object](https://medium.com/@j.kapuscik2/what-is-null-object-design-pattern-f3b4d3d28636)\n- [Fluent Interface](https://medium.com/@j.kapuscik2/what-is-the-fluent-interface-design-pattern-2797645b2a2e)\n- [Specification](https://medium.com/@j.kapuscik2/what-is-the-specification-design-pattern-4051dd9e71c3)\n\n### Following patterns have so far been described:\n\n#### Creational:\n1. [Factory Method](/src/Creational/FactoryMethod)\n2. [Abstract Factory](/src/Creational/AbstractFactory)\n3. [Singleton](/src/Creational/Singleton)\n4. [Builder](/src/Creational/Builder)\n5. [Prototype](/src/Creational/Prototype)\n\n#### Behavioral:\n1. [Iterator](src/Behavioral/Iterator)\n2. [Observer](src/Behavioral/Observer)\n3. [State](src/Behavioral/State)\n4. [Strategy](src/Behavioral/Strategy)\n5. [Template Method](src/Behavioral/TemplateMethod)\n6. [Chain of Responsibility](src/Behavioral/ChainOfResponsibility)\n7. [Visitor](src/Behavioral/Visitor)\n8. [Command](src/Behavioral/Command)\n9. [Null Object](src/Behavioral/NullObject)\n10. [Specification](src/Behavioral/Specification)\n\n#### Structural:\n1. [Adapter](src/Structural/Adapter)\n2. [Decorator](src/Structural/Decorator)\n3. [Proxy](src/Structural/Proxy)\n4. [Dependency Injection](src/Structural/DependencyInjection)\n5. [Facade](src/Structural/Facade)\n6. [Composite](src/Structural/Composite)\n7. [Bridge](src/Structural/Bridge)\n8. [Flyweight](src/Structural/Flyweight)\n9. [Fluent Interface](src/Structural/FluentInterface)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkapuscik2%2Fdesign-patterns-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkapuscik2%2Fdesign-patterns-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkapuscik2%2Fdesign-patterns-php/lists"}