Author: Manuel Lemos
Viewers: 99
Last month viewers: 1
Categories: Notable Packages
The Decorator Design pattern can be used in many circumstances to extend the behavior of programming components by providing them additional functionality around the original component behavior.
This package provides a trait that reduces the effort to implement components that support the Decorator Design Pattern.
Read this article to learn more details about how this notable PHP package works.
This package provides a trait that reduces the effort to implement components that support the Decorator Design Pattern.
Read this article to learn more details about how this notable PHP package works.
The package PHP Decorator Pattern is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.
The basic purpose is: Implement the decorator pattern using a trait
Here follows in more detail what it does:
This package can implement the decorator pattern using a trait.
The trait defines the __call and __get functions to allow adding dynamically new functions and variables to the original class, so when such functions or variables are accessed by applications, the trait will access the functions and variables that were added.
The trait can also call the __onCall or __onGet functions of the original class when the called functions or variable were not defined.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.
The basic purpose is: Implement the decorator pattern using a trait
Here follows in more detail what it does:
This package can implement the decorator pattern using a trait.
The trait defines the __call and __get functions to allow adding dynamically new functions and variables to the original class, so when such functions or variables are accessed by applications, the trait will access the functions and variables that were added.
The trait can also call the __onCall or __onGet functions of the original class when the called functions or variable were not defined.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
Comments:
No comments were submitted yet.