Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP Magazine:
Aspect-Oriented Programming in PHP
Jan 07, 2005 @ 13:18:52

Object Oriented Programming is a day old. Let's move to Aspect-Oriented Programming in PHP. And, that is just what John Stamey, Bryan Saunders, and Matthew Cameron have done. As per a post on Slashdot, AOPHP 1.0 currently supports basic Before, After, and Around advice. Future versions will have more advanced support for these three types of advice. The Extension was developed using Java 1.5 and runs on Apache Web Servers. AOPHP is implemented in two parts. While the first involves using the Apache module ModRewrite, the second is the aophpexec.aophp script that calls the AOPHP parser, written in Java 1.5. Aspects are written with a .aophp extension. These aspects are woven into incoming .php files by the Java AOPHP parser, contained in aophp.jar.

It sounds like an interesting concept, but I'm just not sure how much more it has to offer PHP that the normal OOP programming can't. Anyone out there see the "amazing benefit" of this Aspect-Oriented development?

tagged:

Link:


Trending Topics: