Ed Zynda

Coder | Hacker | Superhero

Aspect Oriented PHP Using Go! AOP Framework

Posted on · Tagged in

In my last article we took a look at using aspect oriented programming (AOP) in PHP by installing the excellent AOP PECL extension for PHP. This is great if you have admin access to the servers you run your code on. It’s very common though, for people to run their code on shared hosting. These types of providers don’t usually provide a way for you to install any extra PHP extensions besides the common extensions they provide.…

Read more »

Aspect Oriented PHP And The Interceptor Pattern

Posted on · Tagged in

There are many ways to modify the behavior of existing code with actually changing the core logic. Some patterns you might be familiar with are the decorator pattern or the observer pattern. Both allow you to take another object and modify the behavior by wrapping your modifcations around the original code. One pattern you might not be familiar with though, is the interceptor pattern. The interceptor pattern is a core concept of what is called aspect oriented programming (AOP).…

Read more »
Subscribe to my newsletter and get a free copy of my book, Aspect Oriented Programming in PHP.