Cooking PHPUnit (and a chef-solo example on top)

I’m sure most of you noticed that with the recent upgrade of PHPUnit to version 3.6, a lot of breakage was introduced in various projects. And for example Zend Framework 1.x won’t update to the latest version either. When I ranted on twitter someone send me Christer Edvartsen’s blog post on how to setup multiple versions of PHPUnit. It’s really neat since it walks you through the setup step by step and you learn about things such as --installroot on the way....

December 4, 2011 · 3 min

PHAR and FreeBSD

I noticed that archivers/pecl-phar vanished from the ports tree on one of my FreeBSD servers. Problem? Reasons to remove the port were: the port is unmaintained the port was based on the outdated phar extension from pecl phar (in pecl) contains open security issues The simple solution is to create a new port which of course will use the phar which is bundled in PHP’s core. And I will get to that (but feel free to beat me at it ;-))....

November 6, 2011 · 1 min

WPML: icl_object_id() and custom post types

Digressing from my usual grounds, I moonlighted a bit on a Wordpress project in September. One of the project’s goals was to make the entire website bi-lingual: French and German (or the way around?). And once multi-lingual is an object, WPML is the plugin to use (as far as Wordpress is concerned). WMPL in a nutshell WPML is a commercial plugin — and as far as I am concerned: it’s money well spend....

October 28, 2011 · 3 min

Iterating over a table (with Zend_Db_Table and Zend_Paginator)

So frequently, I need to run small data migrations or transformations. Especially on the way to Doctrine, there’s a lot to clean-up in a database which has been used and evolved over five years or so. The other day, I wanted to run some transformations on the data located a history column in a pretty simple table — here’s what it looks like: Building a class to interface the table is simple:...

October 11, 2011 · 1 min

Twitter bootstrap + Zend_Form = ♥

I dig Twitter’s bootstrap library because as a developer, it helps me produce good looking forms without a lot of effort. Especially when administration interfaces are concerned, you I can only go so far — my first constraint is not being a great designer (to confirm, check out this blog) and two: I don’t like working with ugly interfaces. To cut to the chase… Easybib_Form_Decorator It’s a decorator library for Zend_Form....

October 2, 2011 · 1 min