PHP Classes

Notable PHP package: PHP Property Preprocessor

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Viewers: 67

Last month viewers: 1

Categories: Notable Packages

PHP supports using class functions named __get to implement a single function that will be used to return values of any class variables.

This package provides a trait that provides a getter function that can preprocess the value of a variable being retrieved in a way that is defined by a custom function.

Read this article to learn more details about how this notable PHP package works.




Loaded Article
The package PHP Property Preprocessor 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: Preprocess class variables when they are accessed

Here follows in more detail what it does:

This package can preprocess class variables when they are accessed.

It provides a trait that implements a getter function defined by the __get function.

This trait getter function can parses the name of the variable that is being accessed and calls a function with the same name of the last part of the variable name to process the actual variable value before it is returned.

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.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)