Implementing the Observer Pattern with SplObserver and SplSubject
As PHP applications grow into complex object-oriented systems, developers look to create centralized components to execute repetitive tasks. These include logging, emailing, redirects, and more. The Observer pattern is a commonly used design pattern to hook such components into an [...]
Quick PHP Debugging with FirePHP
Recently when browsing past issues of php|architect magazine, I came across mention of a Firefox add-on called FirePHP. For those who have not heard of it, FirePHP is both a Firefox add-on and a PHP library used to send messages [...]
To PHP or not to PHP…Let the Framework Debate Begin! (Part 1)
While PHP Frameworks have become quite popular with web developers over the last two years, they have their drawbacks. They can be bulky and/or bloated, bringing the simplest of tasks into a fold of dependencies and data calls. They can [...]
Extending HTML_QuickForm_Rule
HTML_QuickForm is a very popular PEAR library that eases form design for the web programmer. It consists of three separate but equally important parts – form components, form renderers, and form validators. The last of these three is the focus [...]