Use middleware to decorate method calls within your application code.
-
Updated
May 24, 2024 - PHP
Use middleware to decorate method calls within your application code.
Easily decorate your method calls with laravel-decorator package
Minimalistic utility to apply mapping rules to associative arrays in PHP (hashmap for friends)
Patrones de desarrollo con SLIM y PHP
Design Patterns
This is a simple implementation of the decorator design pattern in PHP.
Repository Lists of the design patterns created in this git
Decorative design pattern to ease DOM handling
Decorative design pattern to ease WSDL handling based on DomHandler
Hexagonal Symfony Example
Exemple d'utilisation de trois design pattern au sein d'une application symfony, adapter => pour découpler l'application de doctrine, observer => pour la gestion des événements et decorateur => pour décharger la responsabilité des controller.
Simple MVC site with 3 pages and caching with Redis.
PHP Design Patterns - Basato sul libro Head First Design Patterns Book - Based on Head First Design Patterns Book
The Decorator Pattern, Adapter Pattern, Template Method Pattern, Strategy Pattern, Observer Pattern
Decorator pattern allows us to add new functionality to an existing object. This pattern requires a decorator class which wraps the original class in order to provide additional functionality. For now, we are going to implement a simple example using PHP and see how the decorator works.
Simple php design pattern. Memento, State, Strategy, Chain of Responsibility & Decorator
Implementation of common design patterns with php 7.4
Decorator is a structural design pattern that lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors.
Example for some design patterns in PHP
Add a description, image, and links to the decorator-pattern topic page so that developers can more easily learn about it.
To associate your repository with the decorator-pattern topic, visit your repo's landing page and select "manage topics."